[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for pr
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print |
Date: |
Fri, 17 Feb 2012 05:57:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Follow-up Comment #5, bug #33765 (project octave):
The problem seems to be that the variable use_stipple is not being passed in
correctly. I hardwired use_stipple in gl2ps-render.h like so
void set_linestyle (const std::string& s, bool use_stipple)
{
//opengl_renderer::set_linestyle (s, use_stipple);
opengl_renderer::set_linestyle (s, true);
//if (use_stipple)
if (true)
gl2psEnable (GL2PS_LINE_STIPPLE);
else
gl2psDisable (GL2PS_LINE_STIPPLE);
}
and then used the reporter's example
X = linspace(0,2*pi,1000);
Y1 = sin(X);
Y2 = cos(X);
plot(X,[Y1;Y2],'LineStyle','--')
print -dpng test.png
The output shows the correct dashed line.
Now we just need to trace back and figure out who is calling set_linestyle
with the wrong value of use_stipple.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33765>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/16
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/16
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print,
Rik <=
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Rik, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Rik, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17