Plots.jl: Sparsify Data

Created on 20 May 2017  路  4Comments  路  Source: JuliaPlots/Plots.jl

Sometimes I have millions of data points to plot, e.g., with scatter. This is extremely inefficient so I first sparsity them by throwing away points that are close within some tolerance of already existing points.

Surely this must come up on a regular basis. Maybe this is something that should be left with the user, but I thought I'd mention it as a possible feature for Plots?

enhancement good first issue

All 4 comments

Anyone could quite easily define a sparseplot userplot recipe that does this, and PR it on PlotRecipes (rather than Plots I'd say). I'm sure it would be useful for other people in your situation.

that makes perfect sense - I haven't actually properly looked at PlotRecipes, but will do when I have the time.

This recipe has value, but I wanted to mention that there is another approach in OnlineStats, where you can give a partition of the data and it will plot for example the scatter of some summary statistics on that partition. The link above has a few examples, see if they satisfy your usecase.

Interesting - I haven鈥檛 thought about visualising my data that way, in my specific case it is not obvious that it would represent what the data means, but thank you for pointing t out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ereday picture ereday  路  3Comments

Krastanov picture Krastanov  路  3Comments

GravityAssisted picture GravityAssisted  路  5Comments

Cody-G picture Cody-G  路  4Comments

jebej picture jebej  路  4Comments