Releases: plt-rs/plt
Releases · plt-rs/plt
v0.4.1
v0.4.0
Major Changes
- Changed
SubplotBuilder
methods to takeAxes
type for specifying which axes are modified. - Separated
plot
intoplot
,plot_owned
,step
, andstep_owned
. plot
functions now take data directly.- Removed
SeriesData
and all implementors from public API.
Breaking Changes
PltError
,LineStyle
, andMarkerStyle
are nownon_exhaustive
.- Minor tick mark locations are now spaced according to major ticks.
- Minor tick marks extend beyond major ticks when appropriate.
- Step plots are now pixel perfect.
- Moved some plt-draw re-exports to separate submodule.
- Changed default configuration for
Subplot
to include major and minor ticks on all axes. - Removed
Subplot::builder_detailed
. - Removed
Line
andMarker
from public API. - Changed default figure size.
Changed
- Changed how and when limits are determined internally.
PlotDescriptor
no longer holds data, data is passed separately.- Changed doc / readme example to use
Vec
instead ofndarray::Array1
.
Added
Axes
type for specifying which axes should be modified bySubplotBuilder
methods.fill_between
functionality.
v0.3.1
v0.3.0
Added
plt
SubplotBuilder
andPlotter
for builder pattern subplot and plot construction.builder
function toSubplot
for getting a builder.- Default constructor for
Figure
. - Layouts for setting subplot areas
visible
member of SubplotDescriptor to control the visibility of an axis line.- grid example.
Changed
plt
- Moved from an init struct pattern, to builder pattern for constructing plots and subplots.
- Changed
FigureDescriptor
toFigureFormat
. - Changed name of pretty example to detailed.
- Split
Ticker
into separateTickSpacing
andTickLabels
structs. Auto
varients ofTickSpacing
andTickLabels
now determine if they should exist
based on whether a plot uses that axis.- Updated examples.
plt-draw
- Changed
GraphicsType
toImageType
.
Removed
plt
SubplotDescriptor
,Axis
, andPlotDescriptor
from public API.- Removed
Figure::add_subplot
in favor of using layouts.
v0.2.1
v0.2.0
Added
plt
- Functionality for drawing to provided backend through
Figure::draw_to_backend
.
plt-draw
- Alternate
CairoCanvas
constructor for providing thecairo::Context
:CairoCanvas::from_context
. size
function to theCanvas
trait for getting the size of a canvas.
Changed
plt
- Changed default figsize to more reasonable value.
Fixed
plt
- Figsize was only using one dimension.
- Fixed doc error.