Repository navigation
Tutorials for Matplotlib import and TikZ diagrams - #84
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Covers the features the docs did not show yet.
Docs
tutorial_18_matplotlib_import.ipynb):Canvas.from_matplotlibon a two-panel figure,import_report, why Plotly refuses a native colour bar and howfallback="raster"helps, importing oneAxesand drawing it as TikZ,strict=Trueandtrusted=True.tutorial_19_tikz_diagrams.ipynb):canvas.add_tikzfigure()with nodes and paths; what the Matplotlib drawing shows (shapes, colours, text, lines), the diagram's own TikZ (arrow tips and all TikZ options), and which backends draw diagrams.include_plotlyjs(bundled,"cdn",False, with the file sizes) andto_html(full_html=False)for embedding.Fixes
add_tikzfigurepanel crashed the Plotly backend withAttributeError: 'TikzFigure' object has no attribute '_secondary_xaxis_settings'. It now raisesNotImplementedError, as the plotext backend already did; with a test.tutorials/tutorial-07-tikz/1.png, which has failed ondevelsince 2 November. A notebook's outputs are numbered in order, and in CI the Plotly preview of tutorial 07 is1.html, so the first compiled TikZ figure is2.png(the CI build reports 6 assets for tutorial 07: one HTML and five images).Checks
starlight-notebooks convert --strict; the site builds locally with the link check, andtutorials/tutorial-07-tikz/2.pngis indist.