Math, Python & Julia
Math, Python & Julia
Recently I noticed that the old definition of animation frames doesn't work anymore. More precisely: if I define a subplot with two cells, for example, and want to animate only...
I started testing how PlotlyJS/PlotlyBase works with traces involving colorscale, set by `colorscale=colors.colormapname`. So far I checked uniform colormaps, such as viridis, inferno, magma, twilight, and all cmocean colormaps [https://github.com/JuliaGraphics/ColorSchemes.jl/blob/master/data/cmocean.jl](https://github.com/JuliaGraphics/ColorSchemes.jl/blob/master/data/cmocean.jl)....
I defined an animation via PlotlyJS.jl. When the plot is saved as html the animation works, but code for the plot sent to plotly chart studio doesn't contain the frames:...
A hovertemplate for Surface defined from customdata consisting in an array of shape (m, n, 3), and defined as follows: ``` hover = 'theta: %{customdata[0]:.3f}'+\ 'phi: %{customdata[1]: .3f}'+\ 'power: %{customdata[2]:.3f}'...
Example: ``` plt=Plot(image(z=rand(0:255, (3, 6, 4)), colormodel="rgb", x0=1, y0=1), Layout(width=500, height=335)) ```  To get the right image the following `permutedims` of the array of size (d, rows, cols) =...
Example of heatmap defined such that to display on hover, both the corresponding z-value and a string pointing out, let us say, the data class or category: ``` using PlotlyJS...
Shear transformations are defined here [https://en.wikipedia.org/wiki/Shear_mapping](https://en.wikipedia.org/wiki/Shear_mapping). ``` using Images, CoordinateTransformations, ImageTransformations, Plots function vertical_shear(α) #vertical shear because it preserves the direction e₂=[0,1] M=[1 0; tan(α) 1] LinearMap(M) end img =...
Recently I started using `Meshing.isosurface()`, with MarchingCubes as method. The docs say that _setting `reduceverts=true` (default: true) will merge vertices within a voxel to reduce mesh size by around 30%...
After ten years, the Chrome extension, Open in nbviewer, is no longer available [https://chrome.google.com/webstore/detail/open-in-nbviewer/](https://chrome.google.com/webstore/detail/open-in-nbviewer/) Can it be fixed? Anyway thank you for giving us this extension to open so quickly...
In the `_Quiver` class definition (more precisely within the body of one of its methods) there is a useless line [https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/figure_factory/_quiver.py#L257](https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/figure_factory/_quiver.py#L257) which just leads to repeating the calculations of the...