|
From: stimorol <sa...@go...> - 2009-05-16 16:22:23
|
Hello! I have a problem. I want to plot the tan(x) function in the same style as it was done on wikipedia for cos and sin here http://de.wikipedia.org/w/index.php?title=Datei:Sine_cosine_plot.svg&filetimestamp=20090410200628 http://de.wikipedia.org/w/index.php?title=Datei:Sine_cosine_plot.svg&filetimestamp=20090410200628 but I have some broblems: 1. My function looks not really smooth and nice as on wikipedia 2. The name of the function, here tan(x), is crossed by the graph of the function. how can I prevent this automatically? 3. I want to have \frac{\pi}{2},\frac{3 \pi}{2},.. on the x axis in the LaTex style, but the only thing works is the "poor man" style \pi/2.. here is the code of my picture (+picture): set term png size 360,245 nocrop enhanced font arial 9 set output "tan.png" set samples 1000 set grid unset border http://www.nabble.com/file/p23575388/tan.png set xzeroaxis linetype -1 linewidth 1.5 set yzeroaxis linetype -1 linewidth 1.5 set xtics ("" -2.5*pi,"{/=11 {/Symbol -2p}}" -pi*2,"" -pi*3/2,"{/=11{/Symbol -p}}" -pi,"" -pi*1/2, "{/=11 0}" 0, "" pi*1/2,"{/=11{/Symbol p}}" pi,"" pi*3/2,"{/=11{/Symbol 2p}}" pi*2, "" 2.5*pi) set ytics ("{/=11 {/Symbol -10}}" -10,"{/=11 0}" 0,"{/=11 {/Symbol 10}}" 10) set xrange [-2.5*pi:2.5*pi] set yrange [-10.:10.] plot tan(x) lt rgb "blue" lw 2 title "{/=12 tan(x)}" hmmm during writing this text I realized that the pictute on wikipedia was created in the .svg format (never heared before), so I created it too and opened withe the program Inkscape. the lines are now smooth, but the x- and y- axis disappeared inthe svg-format. problems...:confused: Last request :blush: if some knows an easier (better?) open source program for generating good looking graphs and other mathematical objects PLEASE:handshake: tell thanks -- View this message in context: http://www.nabble.com/How-to-plot-functions-smoother--tp23575388p23575388.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |