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

 
 

bug #37370: plot command overwrites subplots

Submitted by:  Max Shinn <trombonechamp>
Submitted on:  Mon 17 Sep 2012 02:43:17 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Works For MeAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project Administrator
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>
Project 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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by trombonechamp (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 17 Sep 2012 10:41:44 PM UTCrik5Open/ClosedOpen=>Closed
    Mon 17 Sep 2012 01:58:19 PM UTCjordighStatusNone=>Works For Me
    Mon 17 Sep 2012 02:43:18 AM UTCtrombonechampAttached File-=>Added geta.txt, #26564
      Attached File-=>Added getb.txt, #26565

    Back to the top


    Powered by Savane 3.1-cleanup1