Query about the plot API #1770
Unanswered
forsakendaemon
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't really know because I wasn't here yet, but I had the feeling it was because it's easier to add more plots and customize the appearance having the axes, but there also is #276 which suggests an alternative to this approach. It's something that always kind of made sense to me but I can't really say why. As a quick workaround, you can get the figure from an axes using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It feels a little strange to me that when using the matplotlib backend, Arviz returns the array of axes rather than returning a Figure directly - when wanting to use the return value of a
plot_*
call, I often have to instantiate an appropriately-configured Figure after the fact, which replicates work that Arviz has already done and is annoyingly finicky to get right.Chasing through the code I can see that keeping track of the Figure might require a fair amount of care, and it would be a breaking API change to just change it wholesale, so I was wondering whether there was a reason for that choice that I might not be able to see at the moment - I have the feeling that there's something that I'm missing, I'm just not sure what it is.
Beta Was this translation helpful? Give feedback.
All reactions