bugGNU Octave - Bugs: bug #37370, plot command overwrites subplots

 
 

bug #37370: plot command overwrites subplots

Submitter:  Max Shinn <trombonechamp>
Submitted:  Mon 17 Sep 2012 02:43:17 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 17 Sep 2012 10:41:44 PM UTC, comment #9: 

Good, problem solved.  I'll close this report now.

Rik <rik5>
Group administrator
Mon 17 Sep 2012 05:35:05 PM UTC, comment #8: 

Thanks, Rik, that would be my problem.  I found the following line in my config file from trying to fix a problem with eps export several releases ago:

set(0, "defaultaxesposition", [0.14, 0.16, 0.8, 0.73])

Commenting out this line fixed the problem.

Max Shinn <trombonechamp>
Mon 17 Sep 2012 05:29:03 PM UTC, comment #7: 

It seems the same problem persists with fltk.  Here are screenshots after each command.

octave:1> graphics_toolkit fltk

octave:2> subplot(1,2,1)

http://www.enlightenment.org/ss/e-50575d217306d1.24690976.jpg

octave:3> plot([1 2 3])

http://www.enlightenment.org/ss/e-50575d8f1c1ae3.50394697.jpg

Max Shinn <trombonechamp>
Mon 17 Sep 2012 05:28:14 PM UTC, comment #6: 

I can't reproduce this either.  I tried with gnuplot and fltk on versions 3.2.4 and versions 3.6.3.  Everything worked correctly.

Since it appears to happen only on a single machine there may be something odd with that particular setup.  You might try starting with 'octave --norc' so that no user or system initialization files are read and repeat the tests.

Rik <rik5>
Group administrator
Mon 17 Sep 2012 02:34:13 PM UTC, comment #5: 

The current behavior, using fltk, works as expected.
I use subplots often and they work correctly.

There may be a problem with gnuplot.

Michael Godfrey <godfrey>
Group Member
Mon 17 Sep 2012 02:31:35 PM UTC, comment #4: 

When I tried this in Octave I was
using fltk.  It behaves like Matlab.

Michael Godfrey <godfrey>
Group Member
Mon 17 Sep 2012 01:58:19 PM UTC, comment #3: 

I can't reproduce this behaviour. Can you attempt with fltk? Do "graphics_toolkit fltk" before your plotting commands.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Mon 17 Sep 2012 01:46:43 PM UTC, comment #2: 

This is not how all other versions of Octave behave.  On my other computer, administering the two commands above on Octave 3.2 gives the expected behavior: http://www.enlightenment.org/ss/e-505728cf5cf069.74895551.jpg

This is compared to the behavior I am experiencing: http://www.enlightenment.org/ss/e-50568c6f0457f9.20223966.jpg

I don't have access to Matlab, however I am assuming it doesn't function this way, seeing as that would make it impossible to create subplots.

Max Shinn <trombonechamp>
Mon 17 Sep 2012 12:23:20 PM UTC, comment #1: 

This is also how Matlab behaves.  (Matlab R2009b).
Is there a behavior different from this that you
would prefer?  If so, why?


Michael Godfrey <godfrey>
Group Member
Mon 17 Sep 2012 02:43:17 AM UTC, original submission:  

I haven't been able to reproduce this on any machines other than my own, however I'm assuming I can't be the only one experiencing this issue.

When I open octave and type "a = subplot(1,2,1)", I get the first part of a subplot, as one would expect (http://www.enlightenment.org/ss/e-50568c4c348367.30407893.jpg).  However, when I type "b = plot([1 2 3])" after this, it completely erases the subplot window and redraws the plot so that it takes up the entire figure, as though the subplot command was not issued (http://www.enlightenment.org/ss/e-50568c6f0457f9.20223966.jpg). 

I have attached the results of the commands "get(a)" and "get(b)" if that would be helpful.

I'm running *buntu 12.04.1, and can reproduce this on my own computer with both Octave 3.2 and Octave 3.6.1.

Max Shinn <trombonechamp>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26564:  geta.txt added by trombonechamp (3KiB - text/plain)
file #26565:  getb.txt added by trombonechamp (799B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by trombonechamp (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
    2012-09-17 rik5 Open/ClosedOpen Closed
    2012-09-17 jordigh StatusNone Works For Me
    2012-09-17 trombonechamp Attached File- Added geta.txt, #26564
        Attached File- Added getb.txt, #26565

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code