## gnuplot-info

 [Gnuplot-info] plot range From: orangensaft - 2008-05-06 10:21:18 ```hallo, everyone, is it possbile to plot two functions with seperate ranges in one plot? for example, y=2*x*x, x =[0,2], y=-2x*x+16, x=[2,4]. Anyone has an idea? -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17079869.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] plot range From: Thomas Sefzick - 2008-05-06 10:42:38 ```plot x<=2 ? 2*x*x : -2*x*x+16 or plot x<=2 ? 2*x*x : 0/0 , x>=2 ? -2*x*x+16 : 0/0 for more information see the manual http://www.gnuplot.info/docs/gnuplot.html ('gnuplot' - 'expressions' - 'operators' - 'ternary') or type help ternary at the gnuplot prompt. > hallo, everyone, > > is it possbile to plot two functions with seperate > ranges in one plot? for example, > y=2*x*x, x =[0,2], y=-2x*x+16, x=[2,4]. > Anyone has an idea? -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17080131.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] plot range From: orangensaft - 2008-05-06 11:34:32 ```hello, thanks for your answer. At first it works. But the plot is one function, it means i can not plot them with two colors or with two titles. Do your have any suggestion for this? Thomas Sefzick wrote: > > plot x<=2 ? 2*x*x : -2*x*x+16 > or > plot x<=2 ? 2*x*x : 0/0 , x>=2 ? -2*x*x+16 : 0/0 > > for more information see the manual > http://www.gnuplot.info/docs/gnuplot.html > ('gnuplot' - 'expressions' - 'operators' - 'ternary') > or type > help ternary > at the gnuplot prompt. > >> hallo, everyone, >> >> is it possbile to plot two functions with seperate >> ranges in one plot? for example, >> y=2*x*x, x =[0,2], y=-2x*x+16, x=[2,4]. >> Anyone has an idea? > > -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17080800.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] plot range From: Thomas Sefzick - 2008-05-06 13:26:00 ```just use my 2nd example ;-) > hello, thanks for your answer. At first it works. > But the plot is one function, it means i can not > plot them with two colors or with two titles. > Do your have any suggestion for this? > >> plot x<=2 ? 2*x*x : -2*x*x+16 >> or >> plot x<=2 ? 2*x*x : 0/0 , x>=2 ? -2*x*x+16 : 0/0 and if you don't want this little gap between the curves, increase the number of plot points: set samples 1025 -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17082496.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] plot range From: orangensaft - 2008-05-06 14:20:30 ```thanks, thomas, it is solved. -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17083578.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 [Gnuplot-info] dashed line From: Julien Derr - 2008-05-06 16:42:57 ```Dear all, I have an esthetic problem... I have basically two curves which are more or less the same.. I want to plot them in a same graph with a dashed line..of two different colors...one color for each curve ... so the best would be to have dashed lines which are a bit shifted (ideally in quadrature..) is that possible??? can we set that? or do you have an idea of another trick? thanks a lot, Julien ```
 Re: [Gnuplot-info] dashed line From: orangensaft - 2008-05-06 21:52:10 ```As far as i know, dashed line with color is difficult. It may be possible with postscript. But i have never tried it. Thomas could have better suggestion. micmac wrote: > > Dear all, > > I have an esthetic problem... > I have basically two curves which are more or less the same.. I want > to plot them in a same graph with a dashed line..of two different > colors...one color for each curve ... > > so the best would be to have dashed lines which are a bit shifted > (ideally in quadrature..) > is that possible??? > can we set that? or do you have an idea of another trick? > > thanks a lot, > Julien > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save \$100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gnuplot-info mailing list > Gnuplot-info@... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17093159.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] dashed line From: Thomas Sefzick - 2008-05-08 07:31:23 ```> I have an esthetic problem... > I have basically two curves which are more or less > the same.. I want to plot them in a same graph with > a dashed line..of two different colors...one color for > each curve ... > > so the best would be to have dashed lines which > are a bit shifted (ideally in quadrature..) > is that possible??? shifting the dashed pattern along the graph? or defining two complementary dashed patterns? don't think that's easy to do... it depends on the 'terminal' you are using how dashed lines are implemented. in case of emulated dashed lines it may be possible, but for the majority of terminals with dashed lines capability it is left to the output device (which may be a printer, plotter, or a program) to produce dashed lines. even if there would be some trick it would apply to a specific terminal only. > can we set that? or do you have an idea > of another trick? for plotting two functions i would combine a solid and a dashed curve. use the 'test' command to see which dashed lines exist for the terminal you are using and choose the appropriate line types. -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17121877.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] dashed line From: Thomas Sefzick - 2008-05-08 10:45:02 ```> or do you have an idea of another trick? what you could do: plot curve 1 solid, curve 2 solid, curve 1 dashed line an example: set xrange [-pi:pi] set yrange [-1.1:1.1] set term post col dash set style line 1 lt 1 lc 2 lw 5 set style line 2 lt 3 lc 2 lw 5 set style line 3 lt 1 lc 1 lw 5 set out 'plot.ps' plot sin(x) ls 1, 1.02*sin(x) ls 3, sin(x) not ls 2 set out http://www.nabble.com/file/p17124712/plot.gif -- View this message in context: http://www.nabble.com/plot-range-tp17079869p17124712.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] dashed line From: orangensaft - 2008-05-14 08:58:01 ```Hallo, Thomas, Is it possible to plot a straight line like x=3, 1
 Re: [Gnuplot-info] dashed line From: Thomas Sefzick - 2008-05-14 12:39:07 ```> Is it possible to plot a straight line like x=3, 1
 Re: [Gnuplot-info] dashed line From: Thomas Sefzick - 2008-05-14 18:30:31 ```> Is it possible to plot a straight line like x=3, 1