|
From: Ethan M. <eam...@gm...> - 2014-05-01 21:03:57
|
The best that can be done in current gnuplot versions is shown in this demo:
http://gnuplot.sourceforge.net/demo_svg/dashcolor.html
Version 5 will have a separate "dashtype" keyword that operates exactly as
you would expect, and will even allow you to define your own dash patterns
on the fly. But it isn't quite ready yet. This is one of the last bits
holding up initial release of version 5. Nevertheless, you can see the
current state of the feature in this demo:
http://gnuplot.sourceforge.net/demo_canvas_5.0/dashtypes.html
On Thu, May 1, 2014 at 12:44 PM, Markus Appel <
mas...@go...> wrote:
> Hi,
> I try to figure out whether it is possible to define a set of preferred
> line styles, and occasionally switch to another dot/dash pattern while
> keeping all other settings.
>
> Say, I have a default with
> > set style line 1 lt 1 lc 1 lw 2
> and want to use it except to switch to some dot/dashed line.
> > plot sin(x) ls 1 lt 2
> does obviously not work because it will use all definitions of
> linetype 2, and
> > plot sin(x) lt 1 ls 1
> gives an error.
>
> Moreover, if I redefine linetypes with
> > set linetype 1 lt 1 lc 1 lw 2
> > set linetype 2 lt 1 lc 2 lw 2
> the dot/dash-pattern number 2 becomes entirely inaccessible, because it
> would be addressed with "lt 2" which was set to the dot/dash-pattern
> number 1.
>
> I could only find a 9+ year old devel-mailing list discussion whether a
> "dashtype" keyword should be considered for implementation. My only idea
> left would be to use macros, but I find that a bit cumbersome.
>
> Am I overlooking something?
>
> Thanks in advance,
> Markus
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|