天道酬勤,学无止境

plots.jl

Accessing backend specific functionality with Julia Plots

Plots is simple and powerful but sometimes I would like to have a little bit more control over individual elements of the plot to fine-tune its appearance. Is it possible to update the plot object of the backend directly? E.g., for the default pyplot backend, I tried using Plots p = plot(sin) p.o[:axes][1][:xaxis][:set_ticks_position]("top") but the plot does not change. Calling p.o[:show]() afterwards does not help, either. In other words: Is there a way to use the PyPlot interface for a plot that was initially created with Plots? Edit: The changes to the PyPlot object become visible (also in

2021-07-12 08:02:38    分类:问答    matplotlib   julia   plots.jl

Julia PyPlot: plot 3D surface with as face colors the norm of surface gradient

Does anyone know how to plot a 3D surface with Julia's Pyplot with e.g the norm of the surface-gradient as the face color? Similar to this topic for Python: Color matplotlib plot_surface command with surface gradient

2021-07-12 03:03:04    分类:问答    matplotlib   julia   plots.jl

How plot on Images with Plots.jl?

I want using Plots.jl for plot on Images, for example simple sinusoid. Here my code: using Plots using Images gr() h = 400 w = 600 a = Array(RGB{FixedPointNumbers.UFixed{UInt8,8}}, h, w) img = Image(a) p=plot(img) x = collect(0:0.1:2π) plot!(x,sin(x)) png("Test") But I get wrong result. How do this correctly?

2021-06-25 07:42:24    分类:问答    julia   plots.jl