From: Delbert D. F. <iq...@so...> - 2004-12-19 03:19:51
|
After some more diligent searching I have the title, and axis labels working. I also have concluded that when embedded, I will have to explicitly add and control something like the toolbar that appears in non-embedded mode. Any hints as to how to access the icons, etc would be helpful. I believe I have found most of the methods in the matplotlib interface as distinct from the pylab interface. These would be panx, pany, zoomx, zoomy, zoomx, and zoomy. Somewhere, not yet sorted out, is a way to save a figure when embedded. As a newcomer, that distinction between pylab and matplotlib per se, was confusing to say the least. Apparently there is much overlap but also some conflict when embedding in a GUI to add various controls. It is all rather exciting but yet confusing at the same time. After 41 years in software development, I get to OOP and Python!! Most of my usage has and will be Fortran but I have a smattering of C (a few months on an 8-bit machine), a log of PL/1 a long time ago, some PDP 8-I assembly, and Basic. I have not used C++ and do not plan to do so. On Saturday 18 December 2004 06:07 pm, Delbert D. Franz wrote: > I have been making good progress in creating a simple plotting > package for time series read from files. I would now like > to embed this into TK. Using some extrapolation and even > a bit of guess work I have cut and pasted material from > .../examples/embedding_in_tk.py and have a nice window > popping up with a quit button and part of what I want. > > The axis labels are missing and so is the toolbar-items > that need to be present. How does one add labels for > the x and y axes as well as get the toolbar to appear > in the example: embedding_in_tk.py? They both appear > when the non-embedded script is run. > > I have searched the examples and tried sever val options > but nothing works. Why the toolbar appears in one > case but not the other is currently unclear to me. > > Quite impressed with matplotlib but the learning > curve is steep and I am feeling my way > along a tortuous cave in dim light!! > > Delbert Franz > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |