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

Submitted by:  Christian Bergstrand <chbe>
Submitted on:  Fri 24 Sep 2010 05:41:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.3Operating System: Microsoft Windows

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)

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>
Project 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>
Project 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>
Project 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>
Project 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 #21714, 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by chbe (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 31 Oct 2010 04:46:21 PM UTCrik5Attached File-=>Added printed_dev.ps, #21881
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 21 Oct 2010 03:33:26 PM UTCchbeAttached File-=>Added printed.ps, #21746
      Attached File-=>Added printed.pdf, #21747
    Tue 19 Oct 2010 08:39:13 AM UTCchbeAttached File-=>Added printed.png, #21714
      Attached File-=>Added printed.svg, #21715
    Fri 24 Sep 2010 05:41:14 PM UTCchbeAttached File-=>Added ylabel.PNG, #21536

    Back to the top


    Powered by Savane 3.1-cleanup1