Hello again! I think it's not a namespace problem. I tried:
from pylab import plot as pplot import pylab as p As result I received busted SD Files. I ' ve this problem nearly for three months - so I switched to Gnuplot - now recognizing that it is doesn't have enough performance to make a large amount of plots. (I tried local imports in a function as well -- same result) Actually I'm not using any matplotlib code -- just the import statement -- and it's enough that all goes to hell. With "import matplotlib" I do not have those problems - most plotting examples are dealing with pylab -- what can I use instead? Maybe one of you Harry Plotters has an idea! Thanks, Florian Gary Pajer wrote: > On Wed, Oct 1, 2008 at 12:34 PM, Florian Koelling > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > Hi Folks! > > Is there a way to plot simple x/y Data in matplotlib WITHOUT using the > "import pylab" command? (in all examples I only saw pylab). > > I' working with openbabel(pybel) as well and I've got serious problems > whenever I use "from pylab import plot" or similar commands - > > (if I do, SDF files aren't read out anymore properly...) > > > Thanks alot > > > If the problem is "namespace pollution" (one package overriding names > defined earlier) then the following should work: > > from pylab import plot as pplot (where "pplot" is an unused name) > > or > > import pylab as p > > then use, p.plot() instead of plot() > (this latter method is what I use.) > > hth, > gary > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > <mailto:Matplotlib-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users