1
$\begingroup$

How can one change the size of the markers in the TimelinePlot:

tp = {{2014, 12, 29} -> 
    ImageResize[ ExampleData[{"TestImage", "Lena"}], 600], {2015, 12, 
     14} -> ExampleData[{"TestImage", "Lena"}]};

TimelinePlot[tp, Spacings -> 10, AspectRatio -> 1/4, 
 AxesOrigin -> Center, PlotLayout -> "Grouped", 
 ImageSize -> {500, Automatic}, GridLines -> {Automatic, None}, 
 PreserveImageOptions -> True]

enter image description here

After checking all the options and examples in the documentation it's still unclear how to control this. I'm not sure if I should be using ImageResize, Items like in Grid, Tooltips, etc...

And simply using a Panel breaks everything:

enter image description here

Related:

$\endgroup$
3
$\begingroup$

Both Panel and Pane work with just the PlotLayout option.

tpp = {{2014, 12, 29} -> 
    Pane@ImageResize[ExampleData[{"TestImage", "Lena"}], 700], {2015, 
     12, 14} -> ExampleData[{"TestImage", "Lena"}]};

TimelinePlot[tpp, PlotLayout -> "Grouped"]

enter image description here

However, something is odd as simply adding an empty string PlotLayout option (PlotLayout -> "") also works. Bug, perhaps?

Hope this helps.

version 10.3.1 on Win Pro 8.1 64bit

|improve this answer|||||
$\endgroup$
  • $\begingroup$ Also "AspectRatio -> 1/4" seems to break the sizing. $\endgroup$ – M.R. Jan 20 '16 at 4:03

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.