tshead2 on main
Checkpoint work on the computat… (compare)
tshead2 on main
Cleanup the proof of concept la… (compare)
tshead2 on main
Working on the computational gr… (compare)
tshead2 on main
Bump version number. (compare)
tshead2 on v1.0.3
tshead2 on main
Toyplot version 1.0.3 (compare)
tshead2 on main
Add missing copyright. (compare)
tshead2 on main
Make sure we understand xml.etr… Experimenting with computationa… Merge branch 'main' of https://… and 1 more (compare)
tshead2 on main
use matrix mult on text angle t… Merge pull request #208 from ea… (compare)
tshead2 on main
Bump version number. (compare)
canvas = toyplot.Canvas(width=600, height=300)
axes = canvas.cartesian()
axes.x.scale = "log"
axes.y.scale = "log"
mark1 = axes.plot(x, y1)
mark2 = axes.plot(x, y2)
mark3 = axes.plot(x, y3)
@ha:matrix.org
:)
filename
is currently provided as an option to graphs. Do you think it would be a difficult hack to make something like that work?
sandbox/custom-marks
notebook has an example of the easy option (embed an arbitrary blob of data in the figure as Javascript, and write it out on request). Let me know what you think. Cheers, Tim.
toyplot.html.render
. In some cases I've run into the maximum-output error in jupyter b/c too much data was being printed to a cell. I noticed that for some objects, like a toyplot-mark-Text
class object, the style dictionary is repeated in the DOM for every Toyplot-Datum
<g> object, which makes the HTML huge when there are many points with lots of styling. Is there an easy way in toyplot -- outside of hacking the etree element itself -- to pass in a single style dict to the toyplot-mark-Text
<g> object, so that all of the Toyplot-Datum
objects inherit the style from their parent? Or is the best way to manipulate the xml.etree?
For example, the following code:
x = np.arange(5)
y = np.arange(5)
canvas = toyplot.Canvas(width=200, height=200)
axes = canvas.cartesian()
mark = axes.text(x, y, list("abcde"))
repeats the default dictionary for the text markers five times in the xml tree and DOM:
[('transform', 'translate(3.127343632818357,6)')]
[('y', '8.555'), ('x', '-2.78'), ('style', 'fill:rgb(16.1%,15.3%,14.1%);fill-opacity:1.0;font-family:helvetica;font-size:10.0;font-weight:normal;stroke:none;vertical-align:baseline;white-space:pre')]
[('transform', 'translate(26.56367181640918,6)')]
[('y', '8.555'), ('x', '-2.78'), ('style', 'fill:rgb(16.1%,15.3%,14.1%);fill-opacity:1.0;font-family:helvetica;font-size:10.0;font-weight:normal;stroke:none;vertical-align:baseline;white-space:pre')]
[('transform', 'translate(49.999999999999986,6)')]
[('y', '8.555'), ('x', '-2.78'), ('style', 'fill:rgb(16.1%,15.3%,14.1%);fill-opacity:1.0;font-family:helvetica;font-size:10.0;font-weight:normal;stroke:none;vertical-align:baseline;white-space:pre')]
[('transform', 'translate(73.4363281835908,6)')]
[('y', '8.555'), ('x', '-2.78'), ('style', 'fill:rgb(16.1%,15.3%,14.1%);fill-opacity:1.0;font-family:helvetica;font-size:10.0;font-weight:normal;stroke:none;vertical-align:baseline;white-space:pre')]
[('transform', 'translate(96.87265636718163,6)')]
[('y', '8.555'), ('x', '-2.78'), ('style', 'fill:rgb(16.1%,15.3%,14.1%);fill-opacity:1.0;font-family:helvetica;font-size:10.0;font-weight:normal;stroke:none;vertical-align:baseline;white-space:pre')]
Gang:
I’ve been pushing a lot of graph visualization related features to a new branch called neural-net
. Highlights are support for head, middle, and tail markers on graph edges (so you can have edges with arrows), and updated drawing so edges don’t overlap vertex markers. @dereneaton, I’d particularly like to get your feedback on whether this causes problems for Toytree.
Cheers,
Tim
hannes
is it possible to add value labels to the cells of a http://toyplot.readthedocs.io/en/stable/matrix-visualization.html ?
hannes
and is it possible to visually "link" the axes of the plot at the bottom of http://toyplot.readthedocs.io/en/stable/matrix-visualization.html ? so that you could have eg histograms of the bars or columns
hannes
BTW there is a bug: if i click into the matrix in that last plot, the mouse coordinates are shown in the distribution plot with its coordinates!
hannes
i was thinking i would need to use table.body.cell.data thingies :)
axes.fill
to display percentiles, like the example in http://toyplot.readthedocs.io/en/stable/labels-and-legends.html#canvas-legends
spatial
branch, which I need to get back to.