-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New rcParams requests #5618
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
Comments
request 1 is a bit tricky, what should it do in the case where you have lines and images? I suggest using the style context manager to control this based on the context you are plotting. Request 2 is definitely on our radar for the upcoming 2.0 release. |
Here's my opinion:
I think the default behavior for combinations of lines and images would be more-or-less arbitrary. For example, it could just take the default More importantly, I think the convenience of an |
I really worry about rcParams getting ever more complicated and convoluted. I do not support request #1. |
request 2 will be addressed in 2.0 (see #5674 ) however we will not make rcparams conditional on the type of artists being added to the axes. |
Request 1:
imshow
should have separatercParams
for removing ticks and grid.The
image
key should take additional parameters, so that x and y ticks are not present by default, and the grid is not overlaid by default ifaxes.grid
isTrue
. For exampleimage.axis: False
would be ideal. To me, it quite reasonable to wantaxes.grid: True
as the default for numerical plots as well a separate default forimshow
since they have very different use cases.Here is an example:
Request 2: Fix inconsistent
rcParams
behavior with regard to plots that add patches.Some plots that use patches follow the
axes.prop_cycle
, while others do not. For examplehist
obeys bothaxes.prop_cycle
andpatch.edgecolor
, but ignorespatch.facecolor
(even ifaxes.prop_cycle
is not set); however,violinplot
ignores everything exceptpatch.edgecolor
, which is not apparent due to the defaultalpha
setting forviolinplot
(why is this default??). Here is an example:The text was updated successfully, but these errors were encountered: