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

 
 

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

Submitted by:  Pantxo Diribarne <pantxo>
Submitted on:  Mon 09 Oct 2017 08:59:45 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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:

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

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>
Project 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>
Project 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:

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>
Project Member
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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pantxo
  • -unavailable- added by mmuetzel (Posted a comment)
  • -unavailable- added by pantxo (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 29 Oct 2017 04:17:45 PM UTCpantxoAttached File-=>Added standalone.zip, #42289
      Carbon-Copy-=>Added -unavailable-
    Mon 09 Oct 2017 06:41:14 PM UTCmmuetzelStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1