Simply set the two values defining the line you don’t want to see as NaN (Not a Number). Matplotlib will hide the line between the two values automatically.
Check out this example :
http://matplotlib.org/examples/pylab_examples/nan_test.html
More Related Contents:
- pandas .plot() x-axis tick frequency — how can I show more ticks?
- Creating graph with date and time in ticklabels with matplotlib
- Pandas Dataframe line plot display date on xaxis
- Plotting dates on the x-axis with Python’s matplotlib
- Combine Date and Time columns using python pandas
- Changing the formatting of a datetime axis in matplotlib
- matplotlib bar chart with dates
- How to change the datetime tick label frequency for matplotlib plots
- How to plot stacked event duration (Gantt Charts)
- How do you plot a vertical line on a time series plot in Pandas?
- Combine Date and Time columns using pandas
- Plotting dates on the x-axis
- Can Pandas plot a histogram of dates?
- pandas bar plot combined with line plot shows the time axis beginning at 1970
- Using datetime as ticks in Matplotlib
- Format of datetime in pyplot axis
- Seaborn tsplot does not show datetimes on x axis well
- Annotate Time Series plot
- Plot pandas dates in matplotlib
- Convert Pandas Column to DateTime
- How do I get the day of week given a date?
- Convert timestamps with offset to datetime obj using strptime
- How to draw vertical lines on a given plot in matplotlib
- Django auto_now and auto_now_add
- cx_Freeze converted GUI-app (tkinter) crashes after pressing plot button
- Why set_xticks doesn’t set the labels of ticks?
- How to update matplotlib’s imshow() window interactively?
- Getting vertical gridlines to appear in line plot in matplotlib
- Matplotlib move tick labels inside plot area
- Create a figure that is reference counted