1
$\begingroup$

The function TimelinePlot has the option for "Alignment":

    Alignment /. Options[Labeled]

Results in:

    {Center, Baseline}

But if one tries to plug the options into a simple plot:

    TimelinePlot[
     {Labeled[Interval[{{2017, 1, 1}, {2018, 1, 1}}]
       , "Test"
       , Alignment -> {Center, Baseline}
    ]}]

I get the error:

Error message from Mathematica

Thank you for any suggestions!

Sincerely,

Mark

(Windows 7 and Mathematica 11.1.1.0)

$\endgroup$
  • $\begingroup$ I have tried different permutations of the parameters provided in the help page for alignment and can't find a format that is accepted. I expected that the default values (provided in the Options) would work. $\endgroup$ – xsk8rat Jun 30 '17 at 22:38
  • $\begingroup$ It appears that, as a "wrapper," TimelinePlot treats Labeled in a special way (see also BarChart). All of the examples in the documentation for TimelinePlot are not valid uses of Labeled. In particular, it uses the position keywords, Above, Below, Before, After, and Automatic that are not valid in a standalone Labeled. Given those differences, it is not clear that Labeled inside TimelinePlot has the same Labeled options. $\endgroup$ – Michael E2 Jul 1 '17 at 1:06
  • 1
    $\begingroup$ Related: Screwy use of Labeled in BarChart — possible bug $\endgroup$ – Michael E2 Jul 1 '17 at 1:07
  • $\begingroup$ Thank you for the observation and related @Michael E2 ! $\endgroup$ – xsk8rat Jul 1 '17 at 1:41

Your Answer

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

Browse other questions tagged or ask your own question.