-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The yaxis_expr() function captured the first argument as an expression and substituted that argument symbol into the y-axis expression to render. This was more complicated than necessary. Put all the logic into one single expression, instead of building multiple expressions and concatenating them together based on arguments to new_panel(). This required adding 'use_get_ylim', 'draw_left_yaxis', and 'draw_right_axis' into the panel environment. Adding 'use_get_ylim' to the panel environment means get_ylim() is only called once. This improves performance because each call to get_ylim() calls update_panels(). See #103.
- Loading branch information
1 parent
7429dd7
commit cc7c454
Showing
1 changed file
with
48 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters