bugGNU Octave - Bugs: bug #30681, All plot label characters in Greek...

 
 

bug #30681: All plot label characters in Greek when using 'tex' interpreter

Submitter:  Tinos <tinos>
Submitted:  Sat 07 Aug 2010 11:14:12 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Tinos Open/Closed:  * Closed
Release:  * 3.2.3 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 21 Aug 2010 12:46:46 AM UTC, comment #6: 

The lack of a explicit default font has been a long term problem. Is there some open-source font that can be bundled with Octave?

A True-Type font would be best for the current implementation of the gnuplot backend. Are True-Type font's compatible with postscript and FLTK?

Gnuplot can be made aware of bundled font by modifying GDFONTPATH during startiup.

Ben Abbott <bpabbott>
Group Member
Fri 20 Aug 2010 09:27:30 PM UTC, comment #5: 

This is an issue with the default font of gnuplot.  It can be resolved by forcing Octave to use a named font rather than the default "*".

For the original reporter, here are several workarounds:

To change just the label
h = get (gca,"xlabel");
set (h, "fontname", "Arial")  # or whatever font you like

To set the default font on all axes objects for all subsequent figures in the current Octave session use
set (0, "DefaultAxesFontName", "Arial")

To set the default font on all axes objects for the current figure
set (gcf, "DefaultAxesFontName", "Arial")

Rik <rik5>
Group administrator
Thu 19 Aug 2010 12:10:09 PM UTC, comment #4: 

Using your plot stream (and from Octave's prompt) II get the expected behavior with both gnuplot 4.4 and 4.2.6.

What happens if you change the fontname for the axes to something other than "*". If you find a font that works, my expectation/guess is that the environment variable GNUPLOT DEFAULT GDFONT can be changed to that font and you'll get the expected result.

Ben Abbott <bpabbott>
Group Member
Thu 19 Aug 2010 04:27:41 AM UTC, comment #3: 

I upgraded to gnuplot 4.4 but I still see all Greek characters.  I captured the commands being sent to gnuplot and have attached them as the file debug.gp.

(file #21252)

Rik <rik5>
Group administrator
Thu 19 Aug 2010 12:23:08 AM UTC, comment #2: 

Running MacOS X with gnuplot 4.4, I'm unable to confirm this behavior.

Ben Abbott <bpabbott>
Group Member
Tue 10 Aug 2010 03:32:09 AM UTC, comment #1: 

This is confirmed on a recent tip of the development version (8/9/10).

As a workaround, use the \fontname{NAME} command to specify a non-Greek, non-symbol font.

For example,

xlabel('{\fontname{Helvetica} Angle} \alpha')

Rik <rik5>
Group administrator
Sat 07 Aug 2010 11:14:12 PM UTC, original submission:  

The command
xlabel('Angle \alpha')
produces a label that is in all Greek. Whenever one symbol appears in Greek, they all do. I'm running Ubuntu 10.04.

Tinos <tinos>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21252:  debug.gp added by rik5 (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by tinos (Submitted the item)
  • -email is unavailable- added by tinos
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-20 rik5 CategoryNone Interpreter
        StatusConfirmed Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2010-08-19 rik5 Attached File- Added debug.gp, #21252
    2010-08-10 rik5 StatusNone Confirmed
        SummaryPlot Labels in Greek All plot label characters in Greek when using 'tex' interpreter
    2010-08-07 tinos Carbon-Copy- Added tinos

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code