From: Andrew S. <str...@as...> - 2010-03-16 04:48:13
|
John Hunter wrote: > On Mon, Mar 15, 2010 at 3:16 PM, klukas <kl...@wi...> wrote: > >> It's my understanding that there is no built-in method for generating a >> "broken axis" (where you skip over some range of values, indicating this >> with some graphical mark). I wanted to do this, so I've put together a >> function which seems to be fairly robust, and I thought I might propose it >> as a starting point if there's interest in having a built-in facility for >> broken axes. >> >> > This is a nice start of an oft requested feature, and we are > definitely interested. It is enabled by the spine contribution of > Andrew, so you can turn off the upper and lower spines between the > break, so it is nice to see some unintended benefits of his > refactoring. > > > An alternative implementation could craft a custom transform using > some custom artists for spines, but this might be a good bit harder. > Do you have an opinion Andrew on this approach? > John, I'm attaching a helper function I wrote to do just this. Unfortunately, I don't have time to attempt to merge this into MPL right now... On Mon, Mar 15, 2010 at 3:16 PM, klukas <kl...@wi...> wrote: > The only real problems here is that you need to > explicitly plot things on both the upper and lower axes, and then I haven't > figured out how to push out the y-axis label of the main axes object so it > doesn't overlap with the tick labels of the upper and lower axes. So, I > instead moved the y-labels of the upper and lower axes so that they appear > at the center of the axis, but this is problematic. Any thoughts on how to > do that part better? klukas, I'm afraid I don't understand your issue... Can you explain using it differently? -Andrew |