From: John H. <jdh...@ac...> - 2004-04-20 11:52:17
|
>>>>> "Kenneth" == Kenneth McDonald <kmm...@wi...> writes: Kenneth> Couldn't see the answers to these questions when looking Kenneth> through the class reference docs, but they seem like Kenneth> common tasks, so I suspect there are standard idiomatic Kenneth> way of doing these. Could anyone refer me to examples Kenneth> showing Actually, neither of these exist in matplotlib-0.52, but see below. Kenneth> 1) How to most easily label the x axis for data which is Kenneth> plotted by date? (More specifically; does matplotlib have Kenneth> any understanding of date values, and if so, how do I Kenneth> access and use it?) I'm hoping there's an easier way than Kenneth> explicitly labelling ticks on the x axis. Full date support in matplotlib-0.53. Release should be this afternoon. The new examples will be examples/date_demo*.py. Kenneth> 2) I'll be drawing logy graphs, and I want a certain Kenneth> slope to indicate a certain rate of growth, which means Kenneth> that, when using matplotlib via TkAgg, I want it to keep Kenneth> the ratio of the graph display height and display width Kenneth> constant as it resizes the graph to take into account Kenneth> changes in the size of the enclosing window. Is there a Kenneth> standard way to do this? This is a good idea but it's not implemented and should be. How do you think the best way is to indicate a constrained resize? With a modifier key held down during the resize? JDH |