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

Change font type on a single axis #1569

Open
solna86 opened this issue Feb 3, 2022 · 2 comments
Open

Change font type on a single axis #1569

solna86 opened this issue Feb 3, 2022 · 2 comments

Comments

@solna86
Copy link

solna86 commented Feb 3, 2022

Thanks for creating Gadfly, which is fantastic and has become my preferred plotting package, even above ggplot2.

I was wondering whether it is possible to change the font type of a single axis (e.g. just x)? This is useful in case some variables on that axis have to be displayed with a mono-spaced font for clarity (e.g. when labels are strings of the same length), but I still want to keep default choices for the other axis to be consistent with the rest of the figures.

@bjarthur
Copy link
Member

bjarthur commented Feb 6, 2022

no it is not. however, this might be a relatively easy feature to add. one would just need to replace major_label_font here with e.g. major_label_font_abscissa and major_label_font_ordinate and then update all references in the code to major_label_font accordingly. want to take a stab at it? i'd happily review a PR.

@Mattriks
Copy link
Member

Mattriks commented Feb 6, 2022

See also the discussion in #1458 about new text syntax, into which a way to distinguish 'x' and 'y' text could be incorporated.

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

3 participants