[Thread Prev][Thread Next][Index]

Re: [ferret_users] Strange bug in plot title with html features



Hi Ansley and Olivier,

I'm excited to know this capability and so tested it.

On Fri, May 1, 2020 at 1:58 AM Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:

Just to verify we are seeing the same thing, try this script.  Do you see the amount of shifting shown in the attached plot?

I get much larger shifting as shown by the attached image.  I tested this on

  NOAA/PMEL TMAP
  PyFerret v7.5 (optimized)
  Darwin 17.7.0 - 12/16/19
  1-May-20 17:08

Ryo
------
I pasted the following lines onto the pyferret command line and did "frame/test-plot.png" after that.

SET TEXT/FONT=calibri/color=black
SET VIEW UL ; PLOT/TITLE="d18O text text text"                   I[I=1:10] ! Title OK
SET VIEW UR ; PLOT/TITLE="d<sup>18</sup>O text text text"        I[I=1:10] ! Title shifted to the right
SET VIEW LL ; PLOT/TITLE="<&delta><sup>18</sup>O text text text" I[I=1:10] ! Title shifted to the right
SET VIEW LR ; PLOT/TITLE="<&delta>18O text text text"            I[I=1:10] ! Title OK


! viewports starting slightly higher.
! Draw labels without subscript to see the shift
define view/x=0:0.5/y=0.02:0.5 ll2
define view/x=0.5:1/y=0.02:0.5 lr2
define view/x=0:0.5/y=0.52:1 ul2
define view/x=0.5:1/y=0.52:1 ur2

set text/font=calibri/color=blue

SET VIEW UL2 ; PLOT/TITLE="d18O text text text"  
SET VIEW UR2 ; PLOT/TITLE="d18O text text text"  
SET VIEW LL2 ; PLOT/TITLE="d18O text text text"  
SET VIEW LR2 ; PLOT/TITLE="d18O text text text" 

Attachment: test-plot.png
Description: PNG image


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement