bugGNU Octave - Bugs: bug #42939, gnuplot does not scale on-screen...

 
 

bug #42939: gnuplot does not scale on-screen font based on fontsize

Submitter:  Rik <rik5>
Submitted:  Thu 07 Aug 2014 11:37:25 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 08 Aug 2014 04:13:40 PM UTC, comment #2: 

I tried with a number of different font names, but I can't get it to work.  However, you are right that this is a problem caused by the backend terminal used by gnuplot.  I set the environment variable GNUTERM to wxt in a shell and then launched and everything worked fine.  The qt terminal also worked, but setting it to x11 brought back this issue.  I'm going to close this report since this isn't a problem with Octave.


Rik <rik5>
Group administrator
Fri 08 Aug 2014 02:43:28 PM UTC, comment #1: 

I believed that this is because GNUPLot defaults to using a non scalable font under X11 (specifically one known as "fixed").

If you explicitly pick a scalable font:

set (ht, "fontsize", 40, 'FontName', 'Helvetica')

then it will work fine.

Serviscope Minor <serviscope_minor>
Thu 07 Aug 2014 11:37:25 PM UTC, original submission:  

Using gnuplot, the fontsize property does not seem to work for on-screen display.  If I print the plot to an eps file the fontsize property is used.

Sample code:


close all
graphics_toolkit gnuplot
ht = text (0.5, 0.5, "hello world");
set (ht, "fontsize", 40);  # nothing happens
print -deps fs40.eps
## Resulting file shows large fontsize



Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by serviscope_minor (Posted a comment)
  • -email is unavailable- added by rik5
  • -email is unavailable- added by rik5 (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
    2014-08-08 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2014-08-08 rik5 Carbon-Copy- Added -email is unavailable-
    2014-08-08 rik5 Dependencies- bugs #42884 is dependent

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code