-
Notifications
You must be signed in to change notification settings - Fork 361
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
WIP Explore Latex in subplot tags #7958
base: master
Are you sure you want to change the base?
Conversation
See forum post for background. Not straightforward since we run a special PSL function to set those. Tried the obvious (relying on the other places we handle this) but get a crashing PostSCript. Will follow up.
src/gmt_plot.c
Outdated
@@ -2675,24 +2675,24 @@ GMT_LOCAL void gmtplot_consider_internal_annotations (struct GMT_CTRL *GMT, stru | |||
PSL_settextmode (PSL, PSL_TXTMODE_HYPHEN); /* Back to leave as is */ | |||
} | |||
|
|||
GMT_LOCAL void gmtplot_map_label (struct GMT_CTRL *GMT, double x, double y, char *label, double angle, int just, unsigned int axis, bool below) { | |||
GMT_LOCAL void gmtplot_map_label (struct GMT_CTRL *GMT, double x, double y, char *label, double angle, int just, unsigned int axis, bool below, unsigned int feature) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsigned int feature
. Aren't enums
signed ints? So this one should be signed int too, no? Besides unsigned ints
are a pain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feature is now a enum GMT_enum_feature
For testing, here is a small subplot that fails due to Latex code:
I will update the subplot documentation with a note that Latex expressions in the -A is currently not allowed. |
See #7958 for background. This updates the documentation until we have a better solution.
See #8016 for documentation warning. |
* Warn that Latex cannot be used in panel tags See #7958 for background. This updates the documentation until we have a better solution. * Update doc/rst/source/subplot.rst Co-authored-by: Dongdong Tian <[email protected]> --------- Co-authored-by: Dongdong Tian <[email protected]>
See this forum post for background. Not straightforward since we run a special PSL function to set those. Tried the obvious (relying on the other places we handle this) but get a crashing PostScript. Will follow up.