|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Line and Marker Properties CorruptI don't know if it is gnuplot or octave to blame but
t = 0:0.1:6.3; line(t,sin(t),'linestyle','-') Gives the same result as linestyle changed to: Dashed lines. "--" Points. ":" A dash-dot line. "-." That is the line style is solid no matter what I specify. Linewidth works. plot(t,sin(t),".","markersize",3) plot(t,sin(t),"+","markersize",3) plot(t,sin(t),"*","markersize",3) plot(t,sin(t),"o","markersize",3) plot(t,sin(t),"x","markersize",3) Gives the same results as octave: plot(t,sin(t),".") I run gnuplot G N U P L O T Version 4.2 patchlevel 3 last modified Mar 2008 System: Linux 2.6.27-7-generic and octave: GNU Octave, version 3.0.1 |
|
|
Line and Marker Properties CorruptOn 26-Nov-2008, Peter Berntsen wrote:
| | I don't know if it is gnuplot or octave to blame but | | t = 0:0.1:6.3; | line(t,sin(t),'linestyle','-') | Gives the same result as linestyle changed to: | Dashed lines. | "--" | Points. | ":" | A dash-dot line. | "-." | That is the line style is solid no matter what I specify. | Linewidth works. | | plot(t,sin(t),".","markersize",3) | plot(t,sin(t),"+","markersize",3) | plot(t,sin(t),"*","markersize",3) | plot(t,sin(t),"o","markersize",3) | plot(t,sin(t),"x","markersize",3) | | Gives the same results as octave: | plot(t,sin(t),".") | | I run gnuplot | G N U P L O T | Version 4.2 patchlevel 3 | last modified Mar 2008 | System: Linux 2.6.27-7-generic | | and octave: | GNU Octave, version 3.0.1 I think the problem is that gnuplot does not provide terminal-independent control over line styles. jwe _______________________________________________ Bug-octave mailing list Bug-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave |
|
|
Re: Line and Marker Properties Corrupt> | t = 0:0.1:6.3;
> | line(t,sin(t),'linestyle','-') > | Gives the same result as linestyle changed to: > | Dashed lines. > | "--" > | Points. > | ":" > | A dash-dot line. > | "-." > | That is the line style is solid no matter what I specify. > | Linewidth works. Dotted and dashed lines are either not available or not unitified across gnuplot terminals. A "dashtype" option has been mentioned in http://sourceforge.net/tracker/index.php?func=detail&aid=2004590&group_id=2055&atid=302055 however solid/dash/dotted control has not been contributed. A patch would be very welcome. > | plot(t,sin(t),".","markersize",3) > | plot(t,sin(t),"+","markersize",3) > | plot(t,sin(t),"*","markersize",3) > | plot(t,sin(t),"o","markersize",3) > | plot(t,sin(t),"x","markersize",3) > | > | Gives the same results as octave: > | plot(t,sin(t),".") This is a bug in octave. Try command test in gnuplot. The first 13 point symbols are unified across many terminals (x11, wxt, png, ps, pdf, ...). > I think the problem is that gnuplot does not provide > terminal-independent control over line styles. Yes, it does except for the control of dashes. See set style line ... --- PM _______________________________________________ Bug-octave mailing list Bug-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave |
|
|
Re: Line and Marker Properties CorruptOn 8-Dec-2008, Petr Mikulik wrote:
| > | t = 0:0.1:6.3; | > | line(t,sin(t),'linestyle','-') | > | Gives the same result as linestyle changed to: | > | Dashed lines. | > | "--" | > | Points. | > | ":" | > | A dash-dot line. | > | "-." | > | That is the line style is solid no matter what I specify. | > | Linewidth works. | | Dotted and dashed lines are either not available or not unitified across | gnuplot terminals. | | A "dashtype" option has been mentioned in | http://sourceforge.net/tracker/index.php?func=detail&aid=2004590&group_id=2055&atid=302055 | | however solid/dash/dotted control has not been contributed. A patch would be | very welcome. | | | > | plot(t,sin(t),".","markersize",3) | > | plot(t,sin(t),"+","markersize",3) | > | plot(t,sin(t),"*","markersize",3) | > | plot(t,sin(t),"o","markersize",3) | > | plot(t,sin(t),"x","markersize",3) | > | | > | Gives the same results as octave: | > | plot(t,sin(t),".") | | This is a bug in octave. Try command | test | in gnuplot. The first 13 point symbols are unified across many terminals | (x11, wxt, png, ps, pdf, ...). I checked in the following change. Thanks, jwe # HG changeset patch # User John W. Eaton <jwe@...> # Date 1231916820 18000 # Node ID 738cb6271933f66e816114182784790c1c2db8c8 # Parent 841f8e3370c6b98f819681c1662f4844128c0f35 __go_draw_axes__.m: scale markersize by 1/3 instead of 1/6 diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,4 +1,6 @@ 2009-01-14 John W. Eaton <jwe@...> + + * plot/__go_draw_axes__.m: Scale markersize by 1/3, not 1/6. * io/dlmwrite.m: Use '%c' format for character data. diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -589,7 +589,7 @@ usingclause{data_idx} = sprintf ("record=%d", numel (obj.xdata)); if (isfield (obj, "markersize")) - mdat = obj.markersize / 6; + mdat = obj.markersize / 3; endif if (isfield (obj, "edgecolor")) @@ -1303,7 +1303,7 @@ endif if (isfield (obj, "markersize")) - fprintf (plot_stream, " pointsize %f", obj.markersize / 6); + fprintf (plot_stream, " pointsize %f", obj.markersize / 3); found_style = true; endif else _______________________________________________ Bug-octave mailing list Bug-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave |
| Free embeddable forum powered by Nabble | Forum Help |