axis « date « Python Data Type Q&A

Home
Python Data Type Q&A
1.array
2.date
3.dictionary
4.Format
5.integer
6.List
7.numpy
8.regex
9.string
10.tuple
Python Data Type Q&A » date » axis 

1. How to plot data against specific dates on the x-axis using matplotlib    stackoverflow.com

I have a dataset consisting of date-value pairs. I want to plot them in a bar graph with the specific dates in the x-axis. My problem is that matplotlib distributes the xticks ...

2. Displaying an inverted vertical date axis    stackoverflow.com

The chart I'm trying to make is a 2D-array with date as its vertical dimension. By convention, the dates should increase from the top down. Displaying the date the other way ...

3. Plot with non-numerical data on x axis (for ex., dates)    stackoverflow.com

I'd like to plot numerical data against non numerical data, say something like this:

import matplotlib.pyplot as pl
x=['a','b','c','d']
y=[1,2,3,4]
pl.plot(x,y)
However, with matplotlib plot packages you get a warning that the data is not float ...

4. How to set dates in x axis with non-uniform interval?    stackoverflow.com

I would like to draw a time-plot using the matplotlib.dates module. From the tutorial, I know how to set regular interval date like the following:

ax.xaxis.set_major_locator(DayLocator())
ax.xaxis.set_major_formatter(DateFormatter("%Y-%m"))
ax.xaxis.set_minor_...
However, in my data there are some ...

5. Subplots with dates on the x-axis    stackoverflow.com

I'm having trouble using multiple subplots with dates on the x-axis. I'm using the matplotlib example from here. I've modified it to include another subplot (the data being plotted ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.