Comments (3)
Part 1 is done... still need to address "Could also take this opportunity to do away with the pluralized form (or at least map AbstractVector inputs to the pluralized form automatically)"
from plots.jl.
On this same note, I think it would be nice to have a preliminary layer which converts alternative names into the "one true name" for keyword keys and values. So for example:
(:c, :r) --> (:colors, [:red])
(:c, [:r,:b]) --> (:colors, [:red,:blue])
(:t, :l) --> (:linetypes, [:line])
(:type, :s) --> (:linetypes, [:scatter])
etc...
Then syntax could be super short:
plot(y, c=:r)
The one gotcha to look out for... if I want to pass an array of colors for one series (say, for a colorscheme), then I need a way to pass in an array and have it be treated as a single value by the "renaming layer". This is the single most important reason that I still have explicit pluralized arguments. With a good solution I will merge plural and singular versions so they both do the same thing.
from plots.jl.
A clunky solution would be to require the user to wrap "array values" explicitly if the whole array should be applied to one series. So then:
(:c, :r) --> (:colors, [colorant"red"])
(:c, [:r, :b]) --> (:colors, [colorant"red", colorant"blue"])
(:c, [[:r, :b]]) --> (:colors, [[colorant"red", colorant"blue"]])
In the 1st and 2nd cases, the odd series would get the one color red while the even series would get the one color blue. In the 3rd case, all series would get the full vector of [red,blue]
from plots.jl.
Related Issues (20)
- PythonCall.pyisnone() does not exist, please remove it from source code HOT 1
- [BUG] heatmap output shifts relative to axis when using logarithmic xscale and setting xlims on GR HOT 1
- [BUG] Arrow does not work with pgfplotsx
- Warning when loading Plotly backend
- [BUG] Huge vertical margin of `plot_title` HOT 8
- [FR] Improve the `xticks!` dosctring
- [FR] savefig("foo.svgz") (gzip-compressed SVG) HOT 1
- [BUG] grouping Measurement data leads to wrong errorbars in plot
- [BUG] PGFPlotsX doesn't colour certain markers in a scatter plot.
- Support for PlotlyKaleido@2
- Feature request: add keyword to make Julia wait until plot window closes
- [BUG] Julia 1.10.2 fails when trying to add or use Plots issuing Pkg.add("Plots") or using Plots HOT 11
- [FR] Flip yaxis of heatmap
- [FR] Better legends for :vline and :hline HOT 1
- [BUG] Plots.jl dependencies are broken, cannot install the package HOT 3
- [FR] Reproducible output with PGFPlotsX backend
- [BUG] Markers not in legend when plotting step functions
- [BUG] Incorrect display of negative signs in tick labels with non-default fonts in PDF outputs
- [BUG] link=:y doesn't work across nested subplots with layout HOT 2
- [BUG] Precompile fails in Julia 1.10.3: Buffer overflow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plots.jl.