Skip to content

Releases: plt-rs/plt

v0.4.1

18 Nov 17:28
Compare
Choose a tag to compare

Changed

  • Deprecated subplots method for Figure.

Added

  • set_size method for Figure for changing figure size.
  • clear method for Figure for removing all subplots.

v0.4.0

20 Oct 01:40
Compare
Choose a tag to compare

Major Changes

  • Changed SubplotBuilder methods to take Axes type for specifying which axes are modified.
  • Separated plot into plot, plot_owned, step, and step_owned.
  • plot functions now take data directly.
  • Removed SeriesData and all implementors from public API.

Breaking Changes

  • PltError, LineStyle, and MarkerStyle are now non_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 and Marker 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 of ndarray::Array1.

Added

  • Axes type for specifying which axes should be modified by SubplotBuilder methods.
  • fill_between functionality.

v0.3.1

09 Sep 16:04
Compare
Choose a tag to compare

Added

plt

  • SubplotBuilder methods for setting axis line visiblility.
  • SubplotBuilder methods for setting grid lines.

Changed

plt

  • Updated README.

v0.3.0

09 Sep 16:08
Compare
Choose a tag to compare

Added

plt

  • SubplotBuilder and Plotter for builder pattern subplot and plot construction.
  • builder function to Subplot 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 to FigureFormat.
  • Changed name of pretty example to detailed.
  • Split Ticker into separate TickSpacing and TickLabels structs.
  • Auto varients of TickSpacing and TickLabels now determine if they should exist
    based on whether a plot uses that axis.
  • Updated examples.

plt-draw

  • Changed GraphicsType to ImageType.

Removed

plt

  • SubplotDescriptor, Axis, and PlotDescriptor from public API.
  • Removed Figure::add_subplot in favor of using layouts.

v0.2.1

09 Sep 16:11
Compare
Choose a tag to compare

Added

plt

  • StepData and StepDataOwned for making step plots.
  • step example.

v0.2.0

09 Sep 16:11
Compare
Choose a tag to compare

Added

plt

  • Functionality for drawing to provided backend through Figure::draw_to_backend.

plt-draw

  • Alternate CairoCanvas constructor for providing the cairo::Context: CairoCanvas::from_context.
  • size function to the Canvas 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.

v0.1.0

09 Sep 16:12
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release
  • Crates:
    • plt: The main plotting API
    • plt-draw: The drawing backend
  • Examples:
    • simple
    • pretty
    • double