bugGNU Octave - Bugs: bug #31117, Ylabel pushed out of the plot when...

 
 

bug #31117: Ylabel pushed out of the plot when using long tick marks

Submitter:  Christian Bergstrand <chbe>
Submitted:  Fri 24 Sep 2010 05:41:14 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.2.3 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 31 Oct 2010 04:46:21 PM UTC, comment #7: 

This problem has been fixed in the development version of Octave (verified on 2010-10-31).  See the attached postscript file printed_dev.ps.  You will need to compile from source or wait for the next release to see the change.

(file #21881)

Rik <rik5>
Group administrator
Mon 25 Oct 2010 03:41:52 PM UTC, comment #6: 

I haven't come up with anything else to try. I don't see this behavior on MacOS X, so I assume it is a feature of gnuplot on Windows(?).

In any event, I think there is a good chance this problem will not be present in the next release. If someone running the developers sources on Windows stops by, please check to see if the problem is gone.

Ben Abbott <bpabbott>
Group Member
Thu 21 Oct 2010 03:44:01 PM UTC, comment #5: 

Ok, now I am very confused. I'll have to give this more thought.

Ben Abbott <bpabbott>
Group Member
Thu 21 Oct 2010 03:33:26 PM UTC, comment #4: 

I can not actually see any any change in the font, but it at least accepts it, see output.

Don't forget that this is windows (if that has any bearing on your comment about X11)

Attached ps and pdf versions, which looks even worse

------------- Current script ------------------
close all
clear all

set (0, "defaultaxesfontname", "Helvetica")
set (0, "defaulttextfontname", "Helvetica")

get (0, "defaultaxesfontname")
get (0, "defaulttextfontname")

figure
subplot( 4, 1, 1 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 10 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

subplot( 4, 1, 2 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 100 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

subplot( 4, 1, 3 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 1000 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

subplot( 4, 1, 4 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 10000 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

print -dpdf printed.pdf
print -dpsc printed.ps
----------------- Output -------------------
ans = Helvetica
ans = Helvetica

(file #21746, file #21747)

Christian Bergstrand <chbe>
Tue 19 Oct 2010 08:55:11 AM UTC, comment #3: 

Since your font is currently "*", gnuplot will select a default font. For me that doesn't turn out well.

Before creating your plot, change the default font.

set (0, "defaultaxesfontname", "Helvetica")
set (0, "defaulttextfontname", "Helvetica")

This may not look correct for X11, but will work for PS or PDF output.

Finally, please try postscript or pdf output.

print -dpdf printed.pdf

print -dpsc printed.ps

If the results look correct, try selecting a fontname that works with X11.



Ben Abbott <bpabbott>
Group Member
Tue 19 Oct 2010 08:39:13 AM UTC, comment #2: 

I have not be able to figure out how to print to my printer, but I have attached two different prints to file, which don't look the same as the gnuplot window

------------------------------------------

> get (0, "defaultaxesfontname")

ans = *
------------------------------------------


file #21715)

Christian Bergstrand <chbe>
Mon 18 Oct 2010 12:09:58 PM UTC, comment #1: 

I don't see this with the developer's sources.

It is possible that gnuplot is having trouble selecting the proper font.

Does the problem persist if the figure is printed to a printer?

What is the fontname being used?

get (0, "defaultaxesfontname")


Ben Abbott <bpabbott>
Group Member
Fri 24 Sep 2010 05:41:14 PM UTC, original submission:  

The following code progressively pushes the ylabel to the left until it leaves the window altogether.

Running 3.2.3 on Windows XP 32 bit, SP3


figure
subplot( 4, 1, 1 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 10 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

subplot( 4, 1, 2 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 100 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

subplot( 4, 1, 3 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 1000 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

subplot( 4, 1, 4 )
plot( [ 1 2 3 ], [ 1.2334 2.24324 1 ] ./ 10000 );
ylabel( "apa" );
title( "fdsa" );
xlabel( "fdas" );

Christian Bergstrand <chbe>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21881:  printed_dev.ps added by rik5 (25KiB - application/postscript)
file #21746:  printed.ps added by chbe (41KiB - application/postscript)
file #21747:  printed.pdf added by chbe (8KiB - application/pdf)
file #21714:  printed.png added by chbe (42KiB - image/png)
file #21715:  printed.svg added by chbe (19KiB - image/svg+xml)
file #21536:  ylabel.PNG added by chbe (39KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by chbe (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-31 rik5 Attached File- Added printed_dev.ps, #21881
        StatusNone Fixed
        Open/ClosedOpen Closed
    2010-10-21 chbe Attached File- Added printed.ps, #21746
        Attached File- Added printed.pdf, #21747
    2010-10-19 chbe Attached File- Added printed.png, #21714
        Attached File- Added printed.svg, #21715
    2010-09-24 chbe Attached File- Added ylabel.PNG, #21536

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code