From: Moe A. <mo...@po...> - 2004-10-14 16:30:46
|
John, thanks for your very quick response. > You may not be forced to do this; it depends on the circumstances. > I've used the matlab interface to serve web pages before, though not > with twisted. The use of the word global (in the example script > pythonic_matplotlib) may not be the best choice, since the "globals" > like the current figure and current axes are really module level > variables that many modules access. But if you are creating figures > in threads, this would be a problem. So the matplotlib API is a sound > choice. sorry i did not explain fully. due to the asynchronous nature of the twisted framework, most blocking operations are generally executed inside threads, or at least, they are in my case. > I think you are confusing the figure linewidth with the plot > linewidth. The Figure constructor does have a linewidth parameter in > the __init__ method, though this is almost certainly not what you > want. thank you, and indeed i am confused, however i am using matplotlib 0.60.2, and here is the method declaration for Figure's __init__ (from matplotlib/figure.py): class Figure(Artist): def __init__(self, figsize = None, # defaults to rc figure.figsize dpi = None, # defaults to rc figure.dpi facecolor = None, # defaults to rc figure.facecolor edgecolor = None, # defaults to rc figure.edgecolor frameon = True, ): also in 0.60.2 i noticed that ticker.DayMultiLocator is used on line 1518 of matplotlib/axes.py but is not imported the example you sent looks to be most helpful, thanks for taking the time to help me out. Moe |