bugGNU Octave - Bugs: bug #30532, labels overlap tics when fontsize...

 
 

bug #30532: labels overlap tics when fontsize specified in print -F and set(gca(), 'fontsize') differ

Submitter:  Yu Feng <rainwoodman>
Submitted:  Fri 23 Jul 2010 10:42:50 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 27 Aug 2010 11:32:38 AM UTC, comment #5: 

I've pushed the changeset below.

http://hg.savannah.gnu.org/hgweb/octave/rev/dd6b90f44ae5

This problem is no longer present.

Ben Abbott <bpabbott>
Group Member
Sat 21 Aug 2010 12:49:41 AM UTC, comment #4: 

This remains a work in progress. Gnuplot printing is a real mess (one I'm a significant contributor to).

I hope to have the time to clean it up before Sept.

Ben Abbott <bpabbott>
Group Member
Fri 20 Aug 2010 10:05:17 PM UTC, comment #3: 

Ben, has the changeset for this issue been pushed?  Can this issue be closed?

Rik <rik5>
Group administrator
Tue 27 Jul 2010 04:08:51 PM UTC, comment #2: 

I expect the push a changeset to unify the backend printing in the next day or two. A solution to this problem is included.

Ben Abbott <bpabbott>
Group Member
Sat 24 Jul 2010 03:13:55 AM UTC, comment #1: 

As we are currently unifying the print() command for the backends we should be able to handle this problem.

What I thinking is that we change the fontsize properties for the graphics objects, output the image, and then change the fontsize back. Both gl2ps and gnuplot should render a reasonable result.

Ben Abbott <bpabbott>
Group Member
Fri 23 Jul 2010 10:42:50 PM UTC, original submission:  


clf
fplot(@sin, [0, 10]);
xlabel("my x label", 'fontsize', 20);
ylabel("-----my y label------", 'fontsize', 20);
set(gca(), 'fontsize', 20)
print -F:8 -deps test.eps

In the resulting eps file, the axes labels and the tics are overlapping. (test-print-8.eps)

however, with
print -F:20 -deps -tight test.eps
, the labels and tics are no longer overlapping. (test-print-20.eps)



Yu Feng <rainwoodman>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21042:  test-print-8.eps added by rainwoodman (72KiB - image/x-eps)
file #21043:  test-print-20.eps added by rainwoodman (72KiB - image/x-eps)

 

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 bpabbott (Posted a comment)
  • -email is unavailable- added by rainwoodman (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-27 bpabbott StatusNone Fixed
        Open/ClosedOpen Closed
    2010-07-27 bpabbott Assigned toNone bpabbott
    2010-07-23 rainwoodman Attached File- Added test-print-8.eps, #21042
        Attached File- Added test-print-20.eps, #21043

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code