bugGNU Octave - Bugs: bug #31529, Unable to plot solid lines, fix...

 
 

bug #31529: Unable to plot solid lines, fix proposed

Submitted by:  None
Submitted on:  Tue 02 Nov 2010 07:33:58 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Jarno RajahalmeOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.3.52
Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 02 Nov 2010 08:09:10 PM UTC, comment #1:

When you posted this on the maintainers list, I said I couldn't reproduce the problem with the current sources, so I thought the problem was already fixed, and I asked you to try using the current sources and also tell us what version of gnuplot you are using, and to also post a specific example showing exactly what you are doing to generate the plot and the output file.

I don't see your gnuplot version here.

Where is the script that shows precisely what you are doing to generate the plot and output file? What terminal type are you using?

Octave 3.3.52 is not the current sources, so please try that and, if you still have the problem, reopen this report and include the requested info.

John W. Eaton <jwe>
Project Administrator
Tue 02 Nov 2010 07:33:58 PM UTC, original submission:

I was unable to print plots with solid lines. Even the "whiskers" in the errorbars were printing as various dashed lines!

Using hours to dig up the cause I found this in _go_draw_axes_.m

## FIXME -- linetype is currently broken, since it disables the
## gnuplot default dashed and solid linestyles with the only
## benefit of being able to specify '--' and get a single sized
## dashed line of identical dash pattern for all called this way.
## All dash patterns are a subset of "with lines" and none of the
## lt specifications will correctly propagate into the x11 terminal
## or the print command. Therefore, it is currently disabled in
## order to allow print (..., "-dashed") etc. to work correctly.

## if (! isempty (lt))
## fprintf (plot_stream, " linetype %s", lt);
## endif

Changing the commented code to the following allows linetypes set to "-" to always print as solid lines:

## Jarno Rajahalme 2.11.2010
## Allow lt 1 to go through to force solid lines, use "--" to use
## the various dashed backend linestyles
if (! isempty (lt))
if (lt == "1")
fprintf (plot_stream, " linetype %s", lt);
endif
endif

This is not any prettier than the disabling the linetype setting, but I think this works better. Octave's errorbar code uses linetype "-" for the error "whiskers", and with this change they actually print like they should, even when plotting multiple errorbars on the same plot.

Anonymous

 

(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 None (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
    Tue 02 Nov 2010 08:09:10 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1