SizeUnit
Source¶
Bases: Enum
Units of the width and the height of a Plot, used by Size.
Added in version 0.1.0
Examples:
import numdaplot as ndp
prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
style = ndp.PlotStyle(size=ndp.Size(width=16, height=8, unit=ndp.SizeUnit.CENTIMETER))
plot = ndp.Plot.line(prices, style=style)
plot.show()
Attributes¶
PIXEL = auto()
Source¶
Pixels, 100 per inch, the resolution of a PNG image saved without ImageOptions.
Added in version 0.1.0
Examples:
import numdaplot as ndp
prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
style = ndp.PlotStyle(size=ndp.Size(width=600, height=300, unit=ndp.SizeUnit.PIXEL))
plot = ndp.Plot.line(prices, style=style)
plot.show()