Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The biggest advantage of PGFPlots over other plotting packages is that it enables users to alter the LaTeX code. I frequently fine-tune the size, colors, and other properties of a plot to the available space in a scientific paper or a slide set. Almost always, this fine-tuning happens long after the initial plot was generated in Julia.
This PR improves how the LaTeX code is formatted. Namely, the indentation, line breaks, and whitespaces are placed so that a human reader of the code can grasp more easily what is going on. This eases altering the code a lot.
Examples
The following examples are also presented in
doc/PGFPlots.ipynb
. Here, we will compare the new formatting of some examples with their previous formatting. To the best of my knowledge, there is no change in the final PDF and SVG outputs.1) Basic plot
Before:
After:
2) Basic plot with options
Before:
After:
3) Images
Before:
After:
4) Patches
Before:
After: