-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IJulia display logic #157
Comments
Fixed by ed1cce8 |
Great - now it works as expected. |
Hi! The IJulia notebook breaks with huge plots. Will be great to use "png" or format smaller than html/svg with very heavy plots. Thanks! |
There are a couple possible options... make the display output a keyword argument during plot creation (easy-ish), or add some conditional logic to change based on data size (tricky to do well). I'm open to suggestions... Hard data and benchmarks would be important to drive implementation choices. Also this will be backend-dependent, so even trickier to get right.
|
I prefer the keyword argument at the moment, since the conditional logic could be included in the future using a function as its default value. |
What about @diegozea : Do you have such a huge plot example? I'd like to find out what kind of output breaks IJulia (or the browser). I assume you were using the |
@jheinen you may not realize this, but the convenience method for switching backends takes optional keyword arguments that will be passed through to the using Plots
gr(fmt = "png") and it will apply aliases and set default settings for keyword arguments. The advantage of making it a "plot keyword" is that you can choose the format on a per-plot basis, if you want. |
I'm working with matrices of ~ 13000x200. I was mainly using PyPlot and PlotlyJS as backends. It looks as a PyPlot problem. GR and PlotlyJS show fast the huge heatmap, but the PyPlot heatmap doesn't show up with 5000 or more rows (and uses a lot of RAM trying to do it). Even a PyPlot heatmap for a matrix of 1000x200 matrix takes ~ 1m to show up, and uses 0.4G of RAM to do it. After the plot of the 13000x200 matrix, the RAM increases 0.1G with GR and 0.3G with PlotlyJS. I remember having troubles with PlotlyJS in some IJulia sessions using a smaller computer (not only with PyPlot). PlotlyJS times are a little misleading, since PyPlotSmall matrixLarge matrixTakes forever and Ubuntu swaps... GRAwesome performance @jheinen ! Small matrixLarge matrixPlotlyJSSmall matrixLarge matrixGadflyGadfly doesn't support |
@tbreloff The time and memory issue with |
I find it annoying that IJulia seems to call multiple display formats, which is a waste and sometimes does the wrong thing. I'll probably want to override this:
https://github.com/JuliaLang/IJulia.jl/blob/master/src/inline.jl#L31-L40
and I might want to wrap it in a
@require IJulia
.The text was updated successfully, but these errors were encountered: