plotters icon indicating copy to clipboard operation
plotters copied to clipboard

How to plot two combined multiple range into one chart?

Open uuhan opened this issue 4 years ago • 1 comments

Hi, I love this crate for plotting. But after reading all codes under examples directory, I wonder how I can draw two sepreted and not overlaped time range into one chart without some gap between my data.

For example, I have two sets of data:

((time1..time2), y) and ((time3..time4), y)

I want to draw them in one chart.

I can achieve this by split_horizontally() the root drawing area, and draw two chart, one with y-axis and label x-axis start from time1 to time2, the other does not have y-axis and label and with x-axis start from time3 to time4. This "looks like" my two data sets are drawed together. But I think this is not a good way.

uuhan avatar Mar 21 '21 16:03 uuhan

Yep, that's the work around currently. But this is a nice feature to support

38 avatar May 21 '21 22:05 38