bugGNU Octave - Bugs: bug #52196, camva/camtarget/camzoom: resizing...

 
 

bug #52196: camva/camtarget/camzoom: resizing figure changes axes size

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Mon 09 Oct 2017 08:59:45 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 29 Oct 2017 04:23:16 PM UTC, comment #4: 

Sorry the previous post was obviously meant to go in another report.

Pantxo Diribarne <pantxo>
Group Member
Sun 29 Oct 2017 04:17:45 PM UTC, comment #3: 

I have written the attached converter (see attached zip) that takes an svg generated by gl2ps and can write pdf, png, ppm, bmp and jpg outputs.

The converter is currently in the form of a command line Qt based program that you can compile as follows:


qmake qt-svg-convert.pro
make


After that, from Octave you can generate the figure you like and have it converted as follows:


demo text 2
ch = findobj (gca, "type", "text");
set (ch, "fontname", "DejaVuSansMono");
infile = "toto.svg";
outfile = "toto.pdf"
fmt = "pdf";
dpi = get (0, "screenpixelsperinch");

print (infile);
cmd = sprintf ("./qt-svg-convert %s %s %3.2f %s",
               infile, fmt, dpi, outfile);
system (cmd)


Adding Rik to this report recipients since we have discussed the svg conversion before.

The only fancy addition of this converter is that it tries to merge contiguous polygons with the same color to avoid anti-aliasing artifacts. This works well for 2D figures (see "demo hold 6" converted to pdf, it's beautiful :-)) but not for 3D figure where depth sorting limits the extent to which the reconstruction is possible.

(file #42289)

Pantxo Diribarne <pantxo>
Group Member
Mon 09 Oct 2017 08:50:32 PM UTC, comment #2: 

Yes we just exposed cool features, I am not surprised that it also exposes nasty bugs :-).

Pantxo Diribarne <pantxo>
Group Member
Mon 09 Oct 2017 06:40:07 PM UTC, comment #1: 

I can also reproduce this behaviour with Octave 4.2.1 when manually resizing the figure from the following commands:

peaks ();
set (gca, "cameraviewangle", get (gca, "cameraviewangle")/2);


So this is no recent regression.
Also there is this intermittent zooming out effect when using the manual rotate function in the figure. This is more profound when rotating at high and low elevations. When rotating with the camera at z approximately 0 the effect doesn't show.
There might be something wrong in update_camera in graphics.cc.

Markus Mützel <mmuetzel>
Group administrator
Mon 09 Oct 2017 08:59:45 AM UTC, original submission:  

The title says it all. I observe that in the process of printing, which involves resizing the figure, the printed axes generally appears like "unzoomed".

Try "demo camva". Resizing manually the figure (by dragging a corner with the mouse) makes the size of the axes jump from large (larger than the figure) to small.

Pantxo Diribarne <pantxo>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #42289:  standalone.zip added by pantxo (4KiB - application/zip)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by pantxo
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by pantxo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-23 pantxo Dependencies- bugs #55500 is dependent
    2017-10-29 pantxo Attached File- Added standalone.zip, #42289
        Carbon-Copy- Added -email is unavailable-
    2017-10-09 mmuetzel StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code