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
add colorbar option to contour_plots #8368
Comments
comment:1
This ticket depends on #8366. |
comment:2
(update makes colorbars work even when fill=False) |
comment:4
One thing I don't like about this is that you can't easily get a 1:1 aspect ratio plot - using figsize = [a,a] makes the overall figure square but not the plotted region. |
comment:5
Replying to @sagetrac-mhampton:
Of course. If you want the aspect ratio to be 1, then use the aspect_ratio=1 argument, which controls the aspect ratio. The figsize option controls the "figure size", i.e., the size of the entire figure. |
apply instead of previous patch (rebased for the new #8366) |
comment:6
Attachment: trac-8368-colorbars.patch.gz Replying to @jasongrout:
OK. I think I got into the habit of using figsize before aspect_ratio worked. I will check the rebased version as soon as I can. |
comment:7
Thanks for rebasing, I got the following errors. (But I do not switch the 'needs_review' flag unless somebody confirms this issue.)
It would be also nice to add :: in between each pair of different examples - this allows to run any of the examples provided in this patch immediately from reference guide. |
apply on top of previous patch |
comment:8
Attachment: trac-8368-fix-options.patch.gz I fixed both issues in the above patch. I also doctested contour_plot.py this time! Things should work now. |
Reviewer: Robert Mařík |
comment:9
Installs fine, works as excpected, tests passed now, documentation builds fine, positive review and thanks for adding this feature, as well as including my comments. Positive review. Release manager: Apply both trac-8368-colorbars.patch and trac-8368-fix-options.patch patches. |
comment:10
Merged into 4.4.alpha2:
|
Merged: sage-4.4.alpha2 |
This patch adds the option of creating a color bar on a filled contour plot. See the doctests in the patch for examples.
CC: @kcrisman @sagetrac-wcauchois @robert-marik
Component: graphics
Author: Jason Grout
Reviewer: Robert Mařík
Merged: sage-4.4.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/8368
The text was updated successfully, but these errors were encountered: