How to make 3D annotations in Julia Plots

1.3k views Asked by At

The annotation attribute in Julia Plots seems to only take tuples of x,y coordinates and a label according to the documentation. Is there any way to do this on a 3D plot? For example:

tvec=0:0.1:4*pi
plot(sin, tvec)
annotate!(pi/2,1.0,"max")
annotate!(3*pi/2,-1.0,"min")

produces enter image description here but how do you add something to

tvec=0:0.1:4*pi
plot(tvec, sin(tvec), cos(tvec))

Using the same type of annotate! command seems to annotate onto a superimposed 2D coordinate. enter image description here

2

There are 2 answers

0
Jesse Chan On BEST ANSWER

Seems like it's not available yet https://github.com/JuliaPlots/Plots.jl/issues/362

0
logankilpatrick On

According to the Julia Plots (Plots.jl) docs found here, GR, PyPlot, and Plotly(JS) all support 3D plots in some form. It is worth diving into some examples here to explore how these different backends support 3D plots.