bugGNU Octave - Bugs: bug #30545, Can't draw dashed or dotted line...

 
 

bug #30545: Can't draw dashed or dotted line styles on plots

Submitted by:  Steve Chapel <schapel>
Submitted on:  Sun 25 Jul 2010 01:40:52 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: Wont FixAssigned to: None
Originator Name: Steve ChapelOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 29 Aug 2010 02:43:36 PM UTC, comment #2:

These features appear to be implemented correctly by the opengl renderer, so I'm closing this bug report. If you want this feature to work with the gnuplot renderer, then the first step is to get gnuplot to support all the needed line styles in more of its terminal drivers.

John W. Eaton <jwe>
Project Administrator
Tue 27 Jul 2010 10:00:57 AM UTC, comment #1:

This is a limitation of gnuplot that is used for the backend. Gnuplot only supports dashed and dotted lines for a limited number of terminal, notable the postscript terminal. However the terminals used to display to the screen don't support dotted lines (eg X11 terminal). Therefore until gnuplot supports dotted/dashed lines you won't have this feature.

Perhaps the FLTK backend can do this, though I don't use the FLTK backend as I can't upgrade my machine for various reasons and I don't have all the dependencies necessary for FLTK.

I'm not closing this bug report yet, as perhaps someone more knowledgeable with th FLTK backend can respond if the development version (what will soon become 3.4.0) supports dashed/dotted lines

Regards
David

David Bateman <dbateman>
Project Member
Sun 25 Jul 2010 01:40:52 PM UTC, original submission:

The following code:

x = linspace(0, 2*pi, 50);
plot(x, sin(x), "--", x, cos(x), ":", x, sin(2x)+cos(3x), "-.");
pause;

draws the three plots with solid lines. According to the MATLAB line styles given, sin(x) should be dashed, cos(x) should be dotted, and the last should be dash-dot.

Steve Chapel <schapel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by dbateman (Posted a comment)
  • -unavailable- added by schapel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 29 Aug 2010 02:43:45 PM UTCjweOpen/ClosedOpen=>Closed
    Tue 27 Jul 2010 10:00:57 AM UTCdbatemanStatusNone=>Wont Fix

    Back to the top


    Powered by Savane 3.1-cleanup1