In [1]:
import toyplot
In [2]:
canvas = toyplot.Canvas()
axes = canvas.axes(xmin=-1000, xmax=1000, ymin=-1000, ymax=1000, padding=20)
axes.x.ticks.show = True
axes.y.ticks.show = True
In [3]:
canvas = toyplot.Canvas()
axes = canvas.axes(xmin=-1000, xmax=1000, ymin=-1000, ymax=1000, padding=20)
axes.x.ticks.show = True
axes.x.ticks.labels.style = {"font-size":"18px"}
axes.y.ticks.show = True
axes.y.ticks.labels.style = {"font-size":"18px"}
In [4]:
canvas = toyplot.Canvas()
axes = canvas.axes(xmin=-1000, xmax=1000, ymin=-1000, ymax=1000, padding=20)
axes.x.ticks.show = True
axes.x.ticks.labels.angle = -90
axes.x.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "-toyplot-anchor-shift":"-6px", "baseline-shift":0}
axes.y.ticks.show = True
axes.y.ticks.labels.angle = 0
axes.y.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "-toyplot-anchor-shift":"-6px", "baseline-shift":0}
In [5]:
canvas = toyplot.Canvas()
axes = canvas.axes(xmin=-1000, xmax=1000, ymin=-1000, ymax=1000, padding=20)
axes.x.ticks.show = True
axes.x.ticks.labels.angle = -45
axes.x.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "-toyplot-anchor-shift":"-12px", "baseline-shift":0}
axes.y.ticks.show = True
axes.y.ticks.labels.angle = -45
axes.y.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "-toyplot-anchor-shift":"-12px", "baseline-shift":0}
In [8]:
canvas = toyplot.Canvas()
axes = canvas.axes(xmin=-1000, xmax=1000, ymin=-1000, ymax=1000, padding=20)
axes.x.ticks.show = True
axes.x.ticks.labels.angle = -45
axes.x.ticks.labels.offset = 10
axes.x.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "baseline-shift":0}
axes.y.ticks.show = True
axes.y.ticks.labels.angle = -45
axes.y.ticks.labels.offset = 10
axes.y.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "baseline-shift":0}
In [11]:
canvas = toyplot.Canvas()
axes = canvas.axes(xmin=-1000, xmax=1000, ymin=-1000, ymax=1000, padding=20)
axes.x.ticks.show = True
axes.x.ticks.labels.angle = -90
axes.x.ticks.labels.offset = 10
axes.x.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "baseline-shift":"-10%"}
axes.y.ticks.show = True
axes.y.ticks.labels.angle = 0
axes.y.ticks.labels.offset = 10
axes.y.ticks.labels.style = {"font-size":"18px", "text-anchor":"end", "baseline-shift":0}
In [ ]: