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

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

[Octave-bug-tracker] [bug #47974] Visual differences between gnuplot and


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #47974] Visual differences between gnuplot and OpenGL toolkits
Date: Thu, 26 May 2016 03:24:02 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #24, bug #47974 (project octave):

To follow up on what I described in the last post, I'm attaching a screenshot
of the apparently working Qt toolkit output

Screenshot from 2016-05-25 21:43:10-ANNOTATED.png

in which I imported the figure into GIMP and added some notes where I've
compute the number of pixels from GIMP's position indicator.

Given this:


>> kids = get(gcf, 'children')
kids =

  -454.67
  -549.39
  -644.87
  -656.61

>> get(kids(4),'position')
ans =

   0.13000   0.11000   0.77500   0.79758

>> get(kids(4),'units')
ans = normalized


I can believe that the 0.13 represents the left edge of the blue box.  That is
(in pixels) 72/561 = 0.12834.  Alright, good.  But on the right edge I'm left
wondering because (561-55)/561 = 0.90196, but Octave is indicating the
position of the axes is 0.77500....   OH!  Wait, the position is lower right
corner = (pos(1), pos(2)) and width is 0.77500 and height is 0.79758.  Let me
adjust that in my debug code.

OK, attached is also a new diff file for debugging purposes and this one
correctly positions the axes in alignment with the blue box.  So that is a
step in the right direction, but the diff I provided is by no means correct as
there is still the axes labels not falling in the locations expected, resize
plot doesn't work quite right either.

Well, Ben can you provide some insight on how to go about fixing this?


(file #37268, file #37269)
    _______________________________________________________

Additional Item Attachment:

File name: Screenshot from 2016-05-25 21:43:10-ANNOTATED.png Size:30 KB
File name: debug_axes_pos_djs2016may26.diff Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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