|
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. |
|
From: Dr. I. D. J. <die...@t-...> - 2009-05-16 22:30:20
|
Hi Stimorol,
what file format are you actually looking for? AFAIK gnuplot is a very
flexible tool to create graphs of any kind, but the terminals differ with
regard to their capabilities. And a bitmap like a png is always limited to
some extend.
_if_ you are looking for a LaTeX / TeX integration (this is what the second
part of your message is telling me ....) I would suggest a different terminal
- please feed back and I can probably help.
Take care
Dieter
Am Samstag 16 Mai 2009 18:22:19 schrieb stimorol:
> 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
> set yrange [-10.:10.]
>
> plot tan(x) lt rgb "blue" lw 2 title "{/=12 tan(x)}"
******
--
-----------------------------------------------------------
|
\
/\_/\ |
| ~x~ |/-----\ /
\ /- \_/
^^__ _ / _ ____ /
<°°__ \- \_/ | |/ | |
|| || _| _| _| _|
if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------
|
|
From: stimorol <sa...@go...> - 2009-05-18 21:04:08
|
Dr. Ing. Dieter Jurzitza wrote:
>
> Hi Dieter!
> I need plots of functions (many functions sin, cos, x^2,cosh,...) in png
> format. There is no problem to convert them to png if it is better to
> create the output in some other format. The main point is that they should
> look very nice, ( the pupils should like them) like the example on
> wikipedia I posted above.
> I use also LaTeX. If the LaTeX output delivers better pictures I would do
> it that way and than cut them from the pdf output of LaTeX-file.
>
> thanks
>
>
>
> Hi Stimorol,
> what file format are you actually looking for? AFAIK gnuplot is a very
> flexible tool to create graphs of any kind, but the terminals differ with
> regard to their capabilities. And a bitmap like a png is always limited to
> some extend.
> _if_ you are looking for a LaTeX / TeX integration (this is what the
> second
> part of your message is telling me ....) I would suggest a different
> terminal
> - please feed back and I can probably help.
> Take care
>
>
>
> Dieter
>
> Am Samstag 16 Mai 2009 18:22:19 schrieb stimorol:
>> 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
>> set yrange [-10.:10.]
>>
>> plot tan(x) lt rgb "blue" lw 2 title "{/=12 tan(x)}"
> ******
>
> --
> -----------------------------------------------------------
>
> |
> \
> /\_/\ |
> | ~x~ |/-----\ /
> \ /- \_/
> ^^__ _ / _ ____ /
> <°°__ \- \_/ | |/ | |
> || || _| _| _| _|
>
> if you really want to see the pictures above - use some font
> with constant spacing like courier! :-)
> -----------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/How-to-plot-functions-smoother--tp23575388p23605408.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Dr. I. D. J. <die...@t-...> - 2009-05-19 18:47:43
|
Dear Stimrol,
ok, I can serve you with examples and a description shortly, however, I need
to know whether you're working with windows or with linux, as the solutions
are quite similar but not indentical in both cases.
Let me know and I'll send you my suggestions on how to solve your issues.
Take care
Dieter Jurzitza
--
-----------------------------------------------------------
|
\
/\_/\ |
| ~x~ |/-----\ /
\ /- \_/
^^__ _ / _ ____ /
<°°__ \- \_/ | |/ | |
|| || _| _| _| _|
if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------
|