rossant / galry Goto Github PK
View Code? Open in Web Editor NEW[deprecated] High-performance interactive visualization in Python
License: Other
[deprecated] High-performance interactive visualization in Python
License: Other
as a faster alternative to TkAgg and Qt5Agg? (http://matplotlib.org/faq/usage_faq.html#what-is-a-backend)
Hi
first, thank you for the hard work on this amazing project.
I am having a bit problem with installation.
On a ubuntu system, I installed the dependencies, and tried to test it with
from galry import *
but I got the following error instead:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "galry/__init__.py", line 7, in <module> from qtools.qtpy import * File "/home/sun/anaconda2/lib/python2.7/site-packages/qtools/__init__.py", line 3, in <module> from tasks import * File "/home/sun/anaconda2/lib/python2.7/site-packages/qtools/tasks.py", line 137, in <module> class TasksBase(QObject): NameError: name 'QObject' is not defined
I have tried many things, including
sudo apt-get install python-opengl python-qt4 python-qt4-gl; sudo apt-get install mesa-utils
I also tried to git clone the whole repository and run setup.py.
none of this seemed to work. could anyone point to how I should proceed? thanks!
ATM
In [6]: galry.plot?
Type: function
String Form:<function plot at 0x41e6320>
File: /home/yoh/deb/perspect/galry/galry/pyplot.py
Definition: galry.plot(*args, **kwargs)
Docstring: <no docstring>
I guess you could use smth like https://github.com/PyMVPA/PyMVPA/blob/HEAD/mvpa2/base/dochelpers.py#L550
setup.py specifies that a package called qtools should be present but does not exist in the distribution of Galry. Is it deprecated or just missing from the repository?
Hello,
I think there is an issue with graph_visual.py.
Running a known network, edges seem to be connecting to the wrong nodes.
As an example, here is a screen shot of a network using d3.js (its a twitter network):
If I comment out the lines (49,50) in graph_visual.py:
for i, u in enumerate(uedges):
edges[edges == u] = i
this resolves this issue:
thank you for developing this package!
Patrick
This could be my environment, but I thought I'd report this. Using Galry from github with Python 2.7.3 on OS X 10.8.2 I get this error:
Python 2.7.3 |Anaconda 1.4.0 (x86_64)| (default, Feb 25 2013, 18:45:56)
Type "copyright", "credits" or "license" for more information.
IPython 1.0.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: from galry import *
In [2]: from numpy.random import randn
In [3]: plot(randn(3, 10000))
In [4]: show()
Qt internal error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework/Versions/Current/Resources/ or in the resources directory of your application bundle.
Abort trap: 6
I tried do it myself, but i did not got it working,
so a demo would be nice.
Hi, first of all thanks for all the hard work.
When I run the example code in the Readme, y get this error:
RuntimeError: Could not set API version (API 'QDate' has already been set to version 1): did you import PyQt4 directly?
(I'm pretty sure I'm not importing PyQt beforehand)
Any clues ?
I've experienced some strange bug. When I run the following code everything works fine:
from galry import pyplot as glplt
from matplotlib import pyplot as plt
import numpy
glplt.plot(numpy.array([1,2,3,4,5,6]), numpy.array([0,45,13,123,23,2]))
glplt.show()
But when I remove the matplotlib import, the plot window shows up, but without any data. I also get this error message:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/galrywidget.py", line 250, in initializeGL
self.paint_manager.initializeGL()
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/paintmanager.py", line 209, in initializeGL
self.initialize_default()
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/managers/plot_manager.py", line 11, in initialize_default
super(PlotPaintManager, self).initialize_default()
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/managers/default_manager.py", line 22, in initialize_default
text='', name='help', visible=False)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/paintmanager.py", line 164, in add_visual
self.scene_creator.add_visual(visual_class, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/scene.py", line 106, in add_visual
visual = visual_class(self.scene, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/visuals/visual.py", line 572, in __init__
self.initialize(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/visuals/text_visual.py", line 169, in initialize
self.initialize_font(font, fontsize)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/visuals/text_visual.py", line 148, in initialize_font
self.texture, self.matrix, self.get_map = load_font(font, fontsize)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/visuals/fontmaps/tools.py", line 102, in load_font
tex = load_png(png)
File "/usr/lib/python2.7/site-packages/galry-0.1.0.dev-py2.7.egg/galry/visuals/fontmaps/tools.py", line 54, in load_png
import matplotlib.pyplot as plt
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 95, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
globals(),locals(),[backend_name])
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt4agg.py", line 12, in <module>
from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt4.py", line 18, in <module>
import matplotlib.backends.qt4_editor.figureoptions as figureoptions
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/qt4_editor/figureoptions.py", line 11, in <module>
import matplotlib.backends.qt4_editor.formlayout as formlayout
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/qt4_editor/formlayout.py", line 59, in <module>
from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString
How does galry depend on matplotlib? Or is this just a coincidence?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.