4
$\begingroup$

I'd like to annotate a datapoint in my TimelinePlot with a callout. Is there a way or a hack that anyone knows of to get this to work?

TimelinePlot[{Callout[Now,"now"],Callout[Now+Quantity[1,"Days"],"later"]}]

enter image description here

$\endgroup$
3
$\begingroup$

a hack:

DateListPlot[{Callout[{Now, 1}, "now"], Callout[{Now + Quantity[1, "Days"], 1}, "later"]}, 
 Joined -> False, AspectRatio -> 1/10, Frame -> {{False, False}, {True, False}}]

Mathematica graphics

DateListPlot[{Callout[{Now, 1}, "now"],  Callout[{Now + Quantity[1, "Days"], 1}, "later"]},
 Joined -> True,  AspectRatio -> 1/10, PlotMarkers -> Automatic, 
 Frame -> {{False, False}, {True, False}}]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.