Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contour labels not getting line color with system font #99

Open
ryofurue opened this issue Nov 22, 2021 · 2 comments
Open

contour labels not getting line color with system font #99

ryofurue opened this issue Nov 22, 2021 · 2 comments

Comments

@ryofurue
Copy link

set data coads_climatology
contour/l=1/color=red SST
set text/font=LucidaGrande/isiz=3
contour/l=1/color=red SST

The contour lines are red whereas the contour labels remains black. An obvious workaround is

set text/font=LucidaGrande/isiz=3/color=red
contour/l=1/color=red SST

You could argue that this is desirable because you can control the line colors and label colors independently. On the other hand, the behavior isn't consistent with Hershey font.

@ACManke
Copy link
Contributor

ACManke commented Nov 25, 2021

I agree that the default behavior should be that the contour labels should change color when a color is given with CONTOUR/COLOR=

The best way to handle this as things stand now is with a separate setting for the contour labels using the "text group" setting for contour labels. (https://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/SET#_SETTEXT_BOLD). This way the remaining text on the page remains black and only the contour labels are done in red.

set text/font=LucidaGrande/isiz=3
set text/color=red contour
contour/L=1/color=red sst

The text group setting inherits any general settings, and changes any characteristics that are set explicitly.

(edited to fix a missing / in the example)

@ACManke
Copy link
Contributor

ACManke commented Apr 18, 2022

This is fixed in xeq/xeq_contour.F

If we have used SET TEXT to use PyFerret fonts, and if there is not a specific setting for the contour-labels, then the contour label color will now match the color of the contour lines.

This ticket can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants