Skip to main content
Posted alternatives
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

It is simply a matter of getting the date objects into a sensible grouping, getting the labels attached to the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]},
   {DateObject[{2015, 6, 1}] -> 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
    Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
    DateObject[{2016, 3, 6}] -> "End "}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}},
  PlotTheme -> "Classic"]

plot

As far as I can determine, bubble labels can only be placed on point events or at the start of time lines. Therefore, I think what you asking for can not done. Perhaps someone more knowledgable will prove me wrong.

Therefore, you can have this:

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]}, 
   {Labeled[
      Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}], 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}]],
    Labeled[DateObject[{2016, 3, 6}], "End"]}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}}, 
  PlotTheme -> "Classic"]

plot2

You can also have a time line with standard labels as follows:

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]}, 
   {Labeled[
      Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}], 
      {Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}], "End"}, 
      {Before, After}]}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}}, 
  PlotTheme -> "Classic"]

plot3

It is simply a matter of getting the date objects into a sensible grouping, getting the labels attached to the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]},
   {DateObject[{2015, 6, 1}] -> 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
    Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
    DateObject[{2016, 3, 6}] -> "End "}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}},
  PlotTheme -> "Classic"]

plot

It is simply a matter of getting the date objects into a sensible grouping, getting the labels attached to the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]},
   {DateObject[{2015, 6, 1}] -> 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
    Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
    DateObject[{2016, 3, 6}] -> "End "}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}},
  PlotTheme -> "Classic"]

plot

As far as I can determine, bubble labels can only be placed on point events or at the start of time lines. Therefore, I think what you asking for can not done. Perhaps someone more knowledgable will prove me wrong.

Therefore, you can have this:

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]}, 
   {Labeled[
      Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}], 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}]],
    Labeled[DateObject[{2016, 3, 6}], "End"]}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}}, 
  PlotTheme -> "Classic"]

plot2

You can also have a time line with standard labels as follows:

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]}, 
   {Labeled[
      Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}], 
      {Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}], "End"}, 
      {Before, After}]}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}}, 
  PlotTheme -> "Classic"]

plot3

Post Undeleted by m_goldberg
Improved plot layout
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

It is simply a matter of getting the date objects ininto a sensible ordergrouping, getting the labels onattached to the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[{
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]},
   {DateObject[{2015, 6, 1}] -> 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
    Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
    DateObject[{2016, 3, 6}] -> "End "}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}},
  PlotTheme -> "Classic"]

plotplot

It is simply a matter of getting the date objects in a sensible order, getting the labels on the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[{
  Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}],
  DateObject[{2015, 6, 1}] -> 
    Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
  Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
  DateObject[{2016, 3, 6}] -> "End ", 
  Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]},
  PlotTheme -> "Classic"]

plot

It is simply a matter of getting the date objects into a sensible grouping, getting the labels attached to the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[
  {{Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}]},
   {DateObject[{2015, 6, 1}] -> 
      Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
    Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
    DateObject[{2016, 3, 6}] -> "End "}, 
   {Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]}},
  PlotTheme -> "Classic"]

plot

Post Deleted by m_goldberg
Post Undeleted by m_goldberg
deleted 2 characters in body
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

It is simply a matter of getting the date objects in the righta sensible order, getting the labels on the right datdate objects, and removing the option AxesOrigin -> Center.

TimelinePlot[{
  Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}],
  DateObject[{2015, 6, 1}] -> 
    Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
  DateObject[{2016, 3, 6}] -> "End ", 
  Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}], 
  Interval[{DateObject[{20152016, 13, 156}], DateObject[{2015,-> 9,"End 9}]}]", 
  Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]},
  PlotTheme -> "Classic"]

plot

It is simply a matter of getting the date objects in the right order, getting the labels on the right dat objects, and removing the option AxesOrigin -> Center.

TimelinePlot[{
  DateObject[{2015, 6, 1}] -> 
    Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
  DateObject[{2016, 3, 6}] -> "End ", 
  Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}], 
  Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}], 
  Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]},
  PlotTheme -> "Classic"]

plot

It is simply a matter of getting the date objects in a sensible order, getting the labels on the right date objects, and removing the option AxesOrigin -> Center.

TimelinePlot[{
  Interval[{DateObject[{2015, 1, 15}], DateObject[{2015, 9, 9}]}],
  DateObject[{2015, 6, 1}] -> 
    Row[{"Start ", displayLaTeX["\\sum_{i=0}^{10} f(x_i)"]}],
  Interval[{DateObject[{2015, 6, 1}], DateObject[{2016, 2, 29}]}],
  DateObject[{2016, 3, 6}] -> "End ", 
  Interval[{DateObject[{2016, 7, 27}], DateObject[{2016, 8, 6}]}]},
  PlotTheme -> "Classic"]

plot

Post Deleted by m_goldberg
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259
Loading