[#15]:svarga:feature, GR.jl-style plot API (line/scatter) + Solarized themes#18
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.
Closes #15.
GR.jl-style functional surface on
plot::+ Solarized theming, andplot::is now standalone (nobench/dependency).New (include/plot/)
theme.hpp—plot::theme_t,solarized_dark/solarized_light, globalcurrent_theme+plot::theme(t)setter,plot::use{t}per-call override.gr.hpp—plot::line(single + multi-series w/ legend),plot::scatter, GR optionsxlabel/ylabel/xlog/ylog, shared panel/axis-scale/tick layout, theme resolution.Changed
meta.hpp— dropped the#include <bench/meta.hpp>bridge; self-containedplot::arg/plot::impl.grep -rn 'bench' include/plot/is empty.tags.hpp,heatmap.hpp(gradient←theme, theme bg rect, honorsuse{}),all.line_chart.cpp(dark) +scatter.cpp(light);test/plot_gr.cpp; appended example/test targets;test/svg.cpprect-count updated for the theme bg rect.API
plot::line(os|file, xs, ys, opts...), multi-seriesplot::line(os, xs, {{"label",data},...}, opts...),plot::scatter(...). Options:title/xlabel/ylabel/xlog/ylog/width/height/margin/use.Verification
Build clean (C++23, zero third-party); ctest 6/6; line_chart/scatter render themed SVG (dark #002B36, light #FDF6E3).
Note: absolute axis tick text uses text-anchor=start (canvas
text()derives anchor from coord variant, not attr.align) — cosmetic, deferred per rework-phase guidance.Base:
staging.