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

 
 

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

Submitted by:  Tinos <tinos>
Submitted on:  Sat 07 Aug 2010 11:14:12 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: TinosOpen/Closed: Closed
Release: 3.2.3Operating System: GNU/Linux

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)

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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by tinos (Submitted the item)
  • -unavailable- added by tinos
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Aug 2010 09:27:30 PM UTCrik5CategoryNone=>Interpreter
      StatusConfirmed=>Invalid
      Open/ClosedOpen=>Closed
    Thu 19 Aug 2010 04:27:41 AM UTCrik5Attached File-=>Added debug.gp, #21252
    Tue 10 Aug 2010 03:32:09 AM UTCrik5StatusNone=>Confirmed
      SummaryPlot Labels in Greek=>All plot label characters in Greek when using 'tex' interpreter
    Sat 07 Aug 2010 11:14:12 PM UTCtinosCarbon-Copy-=>Added tinos

    Back to the top


    Powered by Savane 3.1-cleanup1