AW: linestyles in plot windows version

Benjamin Lindner lindnerben at gmx.net
Mon Jun 15 03:05:17 CDT 2009


Jörg Schreiber wrote:
> 
> sorry, I forgot to reply. Didn't you receive the screenshot in the message?
> 
> It contains all commands executed - and the resulting plot.

I see screenshots and I see that all commands are illegible.
You are sending jpeg pictures which use lossy compression and are simply 
inadequate for the purpose of deducting which commands you used.

For the resulting gnuplot graphs, it's ok. But the commands are illegible.
Simple copy&paste into a plain-text email does the job.

>  
> 
>>  Gesendet: Mittwoch, 3. Juni 2009 09:46
>>  An: Jörg Schreiber
>>  Cc: bugs at octave.org
>>  Betreff: Re: linestyles in plot windows version
>>
>>  Jörg Schreiber wrote:
>>  > Hello,
>>  >
>>  > when I plot with windows I first get 4 thin blue lines. The linestyles
>>  > and colors appear, when I  increase linewidth.
>>  > after set(h(2)…. lines 2,3 AND4 become dashed (not dashdotted) and wider
>>  > and green.
>>
>>  Could you please be more specific as to which commands you are executing.
>>  A simple cut and paste into an email should do.
>>  Otherwise it's next to impossible to try to reconstruct your problem
>>  cleanly.
>>
>>  >
>>  > when I export to a pdf printer, the lines lose their width and style.
>>  > But when I copy to clipboard, then to irfanview and then to pdf-printer
>>  > the pdf becomes fine.
>>  >
>>
>>  Again, please be concise as to which commands you are using.
>>  What do you do when you are "exporting to a pdf printer"?
> 
> I select print in the figure menu and then choose freePdf printer.
> 

you should take this to the gnuplot mailing list. Printing this way is 
not done by octave, but by gnuplot. Also copy&paste is done by gnuplot, 
not octave. So I suggest you ask the gnuplot list.

>>
>>  >
>>  > I also cannot understand why set does not set the linestyle, and get
>>  > gives other results than what I see in the figure:
>>  >
>>
>>  I'm not sure whether there is a "linestyle" property in octave. This is
>>    a gnuplot spcicificum.
> 
> I can set and get a linestyle, but I can even use a text as a linestyle, 
> seems to be a “dummy”???
> 
> line 4 shows its color specified in get(h(4)) when I change linewidth, 
> before it is red, although get says its cyan.

 From your original email I see that you are using verison 3.0.2
Have you tried using a more recent version yet and see if the problems 
are still present?

Using a 3.2.0 version I can do

 > h = plot(rand(4))
h =

   -5.4457
   -4.9885
   -3.1659
   -2.1473

 > set(h(1),"linewidth",2);
 > set(h(2),"linewidth",2);
 > set(h(3),"linewidth",4);
 > set(h(4),"linewidth",7);
 > get(h(1),"linestyle")
ans = -
 > set(h(1),"marker","+");

and I get what I expect.

The same goes for version 3.0.5

What currently will *not* work is changing the linestyle. This seems to 
be broken (according to a comment found in __go_draw_axes__.m).
Maybe Ben Abbott can comment on that.

benjamin


More information about the Bug-octave mailing list