octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44577] In case that 'MarkerFaceColor' propert


From: Rik
Subject: [Octave-bug-tracker] [bug #44577] In case that 'MarkerFaceColor' property is used, "print" command cannot generate a correct image file.
Date: Wed, 02 Sep 2015 15:01:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #7, bug #44577 (project octave):

Something very screwy is going on with gl2ps.

Try this example


x = linspace(0,1,10);
[X,Y] = meshgrid(x);
mesh (X,Y,X+Y+1)
hold on
plot3 (-1,-1,-1, 'o', 'Markerfacecolor', 'b')
print test1.pdf


In this case, neither the mesh plot nor the 3-D point are at the Z=0 plane. 
And the two objects don't overlap in any way, and yet you can only see a vague
tracery of the mesh grid.

It is possible to get the right plot by reversing the object stack in Octave
so that the mesh is plotted "on top" of the line object.  This shouldn't be
necessary, because they aren't actually on top of each other, but it is
another workaround.  Maybe there is problem with the sorting options that
Octave is passing to gl2ps in this case, or there is an error in the sorting
algorithm within gl2ps.


hk = get (gca, 'children')
hidden on
set (gca, 'children', flipud (hk))
print test2.pdf




(file #34794, file #34795)
    _______________________________________________________

Additional Item Attachment:

File name: test1.pdf                      Size:6 KB
File name: test2.pdf                      Size:6 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44577>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]