Die Suche ergab 19 Treffer

von MB
Mittwoch 18. März 2009, 10:47
Forum: Sonstige (Pygame, PyOpenGL, ...)
Thema: event hanlding in subplots
Antworten: 0
Zugriffe: 2374

event hanlding in subplots

Hallo, ich habe ein plot mit vier subplots. Ich kann über mousevent.handling 2 subplots ansprechen und verändern.[Beide greiefn auf die gleichen Listen zu .] Wie kann ich gezielt nur ein einzelnes subplot [ andere Listen] ansprechen um darin mit mousevents zu arbeiten ? Das ist bestimmt kein großes ...
von MB
Donnerstag 5. März 2009, 00:10
Forum: Sonstige (Pygame, PyOpenGL, ...)
Thema: Plot mit string auf X-Achse
Antworten: 2
Zugriffe: 3377

Cofi,

vielen Dank. Das hat geklappt.

Gruß, MB
von MB
Mittwoch 4. März 2009, 23:34
Forum: Sonstige (Pygame, PyOpenGL, ...)
Thema: Plot mit string auf X-Achse
Antworten: 2
Zugriffe: 3377

Plot mit string auf X-Achse

Hallo, was muss ich machen, wenn ich ein dict mit folgender Strukture habe dict={"Name":[Zahl A, Zahl B,....]} und möchte Diagramme plotten, bei denen die Zahl Y über dem "Namen" auf der X-Achse aufgetragen wird, und der Name ein string ist. File "C:\Programme\pythonxy\pytho...
von MB
Dienstag 3. März 2009, 23:26
Forum: Allgemeine Fragen
Thema: [Anfänger] matplotlib & event
Antworten: 6
Zugriffe: 2054

Hallo, ich bin ein wenig eingetaucht und habe eine Lösung für mein Problem gefunden. Wen es interessiert: # -*- coding: utf-8 -*- import numpy as np from pylab import * import matplotlib.pyplot as plt AMF=[1.1665984021636808, 1.1738562738644749, 1.1666294668813255, 1.1662366918581406, 1.165190807044...
von MB
Montag 2. März 2009, 18:51
Forum: Allgemeine Fragen
Thema: [Anfänger] matplotlib & event
Antworten: 6
Zugriffe: 2054

[Anfänger] matplotlib & event

Hallo, ich habe einen code zusammengebastelt [ mehr war es wiklich noch nicht], der aber das tut, was er soll. Er zeichnet [Qt4] ein Diagramm, und stellt als rote Linie den Mittelwert und als Schatten die Standardabweichung dar. Ich will jetzt einzelne Punkte durch anklicken entfernen - und das funk...
von MB
Freitag 27. Februar 2009, 15:53
Forum: Allgemeine Fragen
Thema: matplotlib zip?
Antworten: 4
Zugriffe: 1370

Hallo, ich benutze python 2.5. das ich mir als bundle von python(xy) geladen habe. Nein, eine Fehlermedlung bekomme ich keine; allerdings bekomme ich auck das onpick print statement nicht, wenn ich auf die Kurve klicke; hingegen funktioniert onclick print schon. Das backend, das ich benutze ist Qt4A...
von MB
Freitag 27. Februar 2009, 11:58
Forum: Allgemeine Fragen
Thema: matplotlib zip?
Antworten: 4
Zugriffe: 1370

matplotlib zip?

Hallo Anfängerfreunde, Ich bin seit zwei Monaten dabei, pthon zu erlernen: mcht #ne Menge Spass. Jetzt bin ich auf einProblem bei folgender Demo gestossen: import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.add_subplot(111) ax.plot(np.random.rand(10)) def onclick(event): ...
von MB
Mittwoch 11. Februar 2009, 12:22
Forum: Installation/Konfigurieren
Thema: Matplotlib import probleme
Antworten: 10
Zugriffe: 4775

Ich vermute zum Einen das Erstellen von .matplotlib
und dann bin ich noch mal raus aus python, und nach einem neuen Aufruf konnte ich die einzelnen Module aufrufen.
Auf jeden Fall hat es funktioniert; klingt das logisch?
von MB
Mittwoch 11. Februar 2009, 12:11
Forum: Installation/Konfigurieren
Thema: Matplotlib import probleme
Antworten: 10
Zugriffe: 4775

Ja, ist vorhanden, wie auch alle anderen.

Aber:!! es funktioniert. Super.

Vielen Dank; ice2k3
von MB
Mittwoch 11. Februar 2009, 11:45
Forum: Installation/Konfigurieren
Thema: Matplotlib import probleme
Antworten: 10
Zugriffe: 4775

Ja, egal welches package ich importieren will, ich bekomme die Fehlermeldung, dass File "C:\Program Files\pythonxy\python\Lib\site-packages\matplotlib\artist.py", line 4, in <module> import matplotlib.cbook as cbook AttributeError: 'module' object has no attribute 'cbook' >>> from matplotl...
von MB
Mittwoch 11. Februar 2009, 11:19
Forum: Installation/Konfigurieren
Thema: Matplotlib import probleme
Antworten: 10
Zugriffe: 4775

Super, Vielen Dank. Nach dem Erstellen von .matplotlib konnte ich es importieren. Dann bin ich aber auf das nächste Problem beim importieren von pylab gestossen mit der folgenden Fehlermeldung: >>> from pylab import* Traceback (most recent call last): File "<pyshell#10>", line 1, in <modul...
von MB
Mittwoch 11. Februar 2009, 10:20
Forum: Installation/Konfigurieren
Thema: Matplotlib import probleme
Antworten: 10
Zugriffe: 4775

Vielen Dank erst einmal. Für mich sieht es so aus, als ob auf ein Verzeichnis geschrieben werden soll, wo kein Zugriff für vorhanden ist. Die Fehlermeldung schlägt ja vor:
consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data
Was ist damit gemeint ?
von MB
Mittwoch 11. Februar 2009, 09:09
Forum: Installation/Konfigurieren
Thema: Matplotlib import probleme
Antworten: 10
Zugriffe: 4775

Matplotlib import probleme

Anfängerfrage: Ich habe mir das bundle pythonxy geladen. Bis auf matplotlib läuft alles tadellos. Beim Importiren von matplotlib bekomme ich die u.g. Fehlermedlung, kann aber nichts damit anfangen. Kann mir jemand weiter helfen ? Traceback (most recent call last): File "<pyshell#0>", line ...
von MB
Sonntag 11. Januar 2009, 13:15
Forum: Qt/KDE
Thema: PyQT - Umwandlung .ui zu .py??
Antworten: 20
Zugriffe: 12665

So langsam lerne ich die richtige Formatierung hier im Forum. Also an der Indentation liegt es auch nicht. Bin für jeden Hinweis dankbar. import sys from PyQt4 import QtGui from Hauptdialog import Ui_Hauptdialog as Dlg class MeinDialog(QtGui.QDialog,Dlg): def __init__(self): QtGui.QDialog.__init__(s...
von MB
Sonntag 11. Januar 2009, 13:06
Forum: Qt/KDE
Thema: PyQT - Umwandlung .ui zu .py??
Antworten: 20
Zugriffe: 12665

OK, ich hoffe so ist es richtig. Die Groß/Kleinschreibung habe ich ausprobiert; die Fehlermeldung ist unabhängig davon. import sys from PyQt4 import QtGui from Hauptdialog import Ui_Hauptdialog as Dlg class MeinDialog(QtGui.QDialog,Dlg): def __init__(self): QtGui.QDialog.__init__(self) self.setupUi(...
von MB
Sonntag 11. Januar 2009, 12:43
Forum: Qt/KDE
Thema: PyQT - Umwandlung .ui zu .py??
Antworten: 20
Zugriffe: 12665

Kann ich an dem Problem noch einmal mit einem eigenen Problen ansetzen. Ich habe ebenfalls nach dem GalileoBuch Kapitel 24 versucht, das Programm nachzubauen; beim Aufrufen dieses Programms kommt aber die Fehlermeldung ImportError: No module named hauptdialog . Die Hauptdialog.ui und py sind aber im...
von MB
Samstag 10. Januar 2009, 14:04
Forum: Qt/KDE
Thema: Installation PyQt
Antworten: 5
Zugriffe: 3643

ja, mein ich ja. Ich habe die exe-Datei ausgeführt und in den angegebenen Pfad "gespeichert" - oder was auch immer der richtige terminus ist.
von MB
Samstag 10. Januar 2009, 13:16
Forum: Qt/KDE
Thema: Installation PyQt
Antworten: 5
Zugriffe: 3643

Installation PyQt

Anfängerfrage:
ich habe PyQt in C:python26/lib/site-packages/PyQt4 gespeichert und bekomme, wenn ich den code ansehen möchte die Fehlermeldung ....PyQt4/.\uic konnte nicht gestartet werden. Was habe ich falsch gemacht ?
von MB
Montag 5. Januar 2009, 15:16
Forum: GTK+/GNOME
Thema: Aktivieren von GTH+
Antworten: 1
Zugriffe: 1960

Aktivieren von GTH+

Hallo, ich bin neu hier und beginne erst mit dem Programmieren. Haben mir dazu python3.0 runtergeladen und die ersten Gehversuche gemacht. Wollte mir jetzt GTK+ runterladen und habe dazu ein bundle geladen - hat soweit auch funktioniert. Aber wie bekomme ich das jetzt ans Laufen? Wäre nett, wenn es ...