These are chat archives for sandialabs/toyplot

19th
Apr 2017
Timothy M. Shead
@tshead2
Apr 19 2017 16:02

Gang:

I started a new section for “case studies” in the documentation, as a way to provide Toyplot examples that are a little more realistic; you can see an example at http://toyplot.readthedocs.io/en/latest/communities-case-study.html … contributions would be welcome!

Cheers,
Tim

Timothy M. Shead
@tshead2
Apr 19 2017 16:18
It’s a work in progress, but you can see an example of embedding markers in text at https://github.com/sandialabs/toyplot/blob/master/design/text-markers.ipynb … nice thing is it opens-up lots of new possibilities for legends and annotation. You could even put markers in tick locators if you wanted to.
Deren Eaton
@dereneaton
Apr 19 2017 16:23
Oh cool, I suppose this works around the problem where putting text on top of a marker would block the cursor from finding the interactive title when you hover over it, right?
Timothy M. Shead
@tshead2
Apr 19 2017 17:01
Yep, that would not be an issue when the marker and text are rendered together as one.
Deren Eaton
@dereneaton
Apr 19 2017 22:17

Hi @tshead2 ,
I've been wrestling with the matrix visualization all day and I have to say I'm still quite confused about how to get a matrix aligned with other objects on a cartesian axes. I think I followed your instructions from the post above in this thread, but it still seems like there is something off.

If I plot axes.bars for five data points they will be plotted on the points [0, 1, 2, 3, 4, 5] with the minimum bar edge is on -0.5 and the maximum bar edge at 5.5.

However, if I try to plot a matrix with the same dimensions, even after trying to account for the two extra border cells in the table, the minimum bar edge is at -0.5 but the max bar edge is at 6.

There is probably an easy fix for this, but I haven't been able to figure it out yet. Below is an example:

image.png
Deren Eaton
@dereneaton
Apr 19 2017 22:41
Also, a minor bug that I just ran into on the master branch is that you can no longer provide "" as a value to axes.text. For example, you now get an error for: axes.text([0,1,2], [1,2,3], ["", "a", "b"]). Although it does work if you replace "" with " ".