Comments (11)
Here's another good one that should probably be a recipe:
from plots.jl.
👍 This is great. Colors based on correlations are a nice touch! Could Plots just have this as a function scatterplotmatrix(x)
?
from plots.jl.
Yeah that's probably reasonable too... although it would be really cool to implement it as a recipe attached to the OnlineStats.CovarianceMatrix. We could do things like add an update!
function to the recipe which could add data points to the scatters and adjust the colors on the fly as new data is added to the model. That's harder if it's just sitting as a standalone (static) method within Plots. Just brainstorming here...
from plots.jl.
I like the updating idea. Maybe OnlineStats could have an update_plot!
function similar to update_get!
?
from plots.jl.
I tightened up the layout and removed the inner tick labels... much nicer I think:
from plots.jl.
This works on dev now:
using Plots, OnlineStats
gadfly()
default(size=(800,800),leg=false)
n = 1000
x = randn(n)
y = 2randn(n) + 0.5x
z = 0.2randn(n) + 0.5x - 0.1y
v = -x
M = [x y z v]
C = cor(CovarianceMatrix(M))
corrplot(M, C, colors=[colorant"red", colorant"black", colorant"green"])
from plots.jl.
This is really cool! If you allow me a remark then it would be to reduce the overplotting a bit. The circles seem to be suboptimal for this type of plot.
from plots.jl.
See: JuliaML/MLPlots.jl#2
from plots.jl.
See: JuliaML/MLPlots.jl#5
I'm experimenting with a method Plots._apply_recipe
which would get called within plot!
and subplot!
, and allow for implementing arbitrary recipes which can be called like:
plot(mycustomtype, otherargs...; kwargs...)
This may make PlotRecipe
s obsolete...
from plots.jl.
The purpose of recipes always appeared to me to be reusable small building blocks for things that you don't usually plot on their own. The ellipse seems like a good example. One rarely wants to plot just an ellipse, but there may be reasons (such as PCA) to include one in the plot
from plots.jl.
I agree... had the same thought after I posted. However, it probably makes more sense to bypass the PlotRecipe type and just create a new standalone type:
type EllipseRecipe
...
end
function Plots._apply_recipe(d::Dict, ellipse::EllipseRecipe; kw...)
# update d
# return (x,y)
end
I could keep PlotRecipe around just for informational purposes, but no real dispatch use.
from plots.jl.
Related Issues (20)
- [BUG] Arrow does not work with pgfplotsx
- Warning when loading Plotly backend HOT 2
- [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 HOT 1
- [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
- Failed to precompile Plots on Julia v1.10.3
- [FR] Avoid gratuitous use of transparency HOT 6
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.