Bot releases are hidden (Show)
Small quality-of-life improvement. I just noticed that I construct the PathBuf
to the newly-generated PDF every time after calling Picture::to_pdf
. Just return the path from the function instead.
Published by DJDuque almost 2 years ago
This new release introduces some breaking changes (they are 100% worth it in my biased opinion):
The API for compiling and showing a figure has simplified significantly when the tectonic
feature is not enabled. This will not break old code that ran e.g. pdflatex
directly using the standalone_string()
, but it provides a much easier way of compiling a pdf (Picture::from(plot).to_pdf(Engine::PdfLatex)
) and showing (Picture::from(plot).show_pdf(Engine::PdfLatex)
).
This will break old code that used the inclusive
feature in the following ways:
inclusive
feature no longer exists. It has been renamed to tectonic
.plot.show()
for Picture::from(plot).show_pdf(Engine::Tectonic)
. This is a little bit more verbose, but is consistent with the non-tectonic way of viewing a plot.Additionally error handling is now done properly using the thiserror
crate.
Published by DJDuque almost 2 years ago
Fix opening PDF figures on macOS with the inclusive
feature to use the default PDF viewer correctly.
Published by DJDuque over 2 years ago
This release introduces a small "breaking" change on the public API. Almost all code should still compile correctly, otherwise a trivial type annotation will make code compile correctly again.
After constantly using the library for multiple private projects, I believe that the public API is unlikely to change again (apart from adding new features, and supporting more PGFPlots keys).
Full Changelog: https://github.com/DJDuque/pgfplots/compare/v0.3.1...v0.4.0
Published by DJDuque over 2 years ago
Quick fix to README figures in crates.io
Published by DJDuque over 2 years ago
Full Changelog: https://github.com/DJDuque/pgfplots/compare/v0.2.0...v0.3.0
Published by DJDuque over 2 years ago
Thanks to the tectonic crate, this will allow users to generate figures without having a LaTeX distribution installed in their system. Tectonic is a big project, orders of magnitude more complex than this PGFPlots code generator. For this reason, the tectonic crate is "hidden" behind the inclusive feature for people that want to view plots directly. For people that already have a LaTeX distribution, it is recommended to compile the LaTeX code directly (it reduces significantly compilation and processing times).
inclusive
feature by @DJDuque in https://github.com/DJDuque/pgfplots/pull/9
Full Changelog: https://github.com/DJDuque/pgfplots/compare/v0.1.0...v0.2.0
Published by DJDuque over 2 years ago