Hot answers tagged

6

The box is easy to draw using the axis coordinate system, just use the command \draw[red] (axis cs:3,0) rectangle (axis cs:7,7.5);. If you want to have it filled, just use \fill instead. For the evaluation line, I used the intersections library. Give a name to the path you want to mark the evaluation line on, by adding name path global=myFunction to the \...


6

A try with Asymptote. Compile on http://asymptote.ualberta.ca/. Note that test=64 is a lucky number for my computer. import graph; size(300,200,false); real chi(real t) { real a=sin(pi*t); return (a != 0) ? a*exp(-1/a^2) : 0; } real rho(real t) { return sqrt(simpson(chi,0,t+1)/simpson(chi,0,1)); } int test=64; guide g1=graph(chi,0,3.5,300,Spline); ...


3

Very similar to @Rushi answer ... with some off-topic tweaks (for exercise) :-) With use of the arrows.meta library beside intersection MWE can be: \documentclass[border=3.141592, varwidth] {standalone} \usepackage{pgfplots} %\pgfplotsset{width=8cm,compat=1.3} % far to old version ... \pgfplotsset{compat=1.18, % recent version, update your LaTeX ...


2

TikZ draws elements in the order that you provide in the code (with some exceptions, notably the backgrounds tikzlibrary). Therefore, if you want the plot markers to be on top of the arrow lines, and the text labels on top of everything, then you should put the code for the arrow lines first, then the code for the plot markers, then the code for the text ...


1

\documentclass[tikz, border=1cm]{standalone} \usepackage{tikz-network} \begin{filecontents}{vertices.csv} id, x, y ,label 0, -1.25, 4.5, C 1, 3.5, 4.5, C++ 2, 3.5, 2.5, HTML 3, -2.75, 2.5, JavaScript 4, 1.25, 5, Python 5, 1.25, 1.75, CSS 6, 3.75, 6, Shell 7, -2.25, 5.75, Objective-C 8, 1.75, -0.5, PHP 9, 5, 0, Java 10, 5.25, 3.5, Makefile 11, -1.75, 0, Ruby \...


Only top voted, non community-wiki answers of a minimum length are eligible