I'm having trouble with my vertex text running off the edge of the canvas. For an example see: http://ryancompton.net/assets/darknet-market-basket-analysis/evo_market_labe... I got the impression that "fit_view" with a float would scale things properly but it does not seem to change anything.
On 19.05.2015 07:46, Ryan Compton wrote:
I'm having trouble with my vertex text running off the edge of the canvas.
For an example see: http://ryancompton.net/assets/darknet-market-basket-analysis/evo_market_labe...
I got the impression that "fit_view" with a float would scale things properly but it does not seem to change anything.
Indeed there seems to be a bug with the fit_view option. I'll provide a fix. In the meantime, the best approach would be to set fit_view=False, and scale your vertex positions accordingly. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
On 27.05.2015 22:31, Tiago de Paula Peixoto wrote:
On 19.05.2015 07:46, Ryan Compton wrote:
I'm having trouble with my vertex text running off the edge of the canvas.
For an example see: http://ryancompton.net/assets/darknet-market-basket-analysis/evo_market_labe...
I got the impression that "fit_view" with a float would scale things properly but it does not seem to change anything.
Indeed there seems to be a bug with the fit_view option. I'll provide a fix.
I've finally fixed this now in git. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Any advice on building from the git repo for python 3? Here's what I get (ubuntu 14.04): $ export PYTHON=/usr/bin/python3 $ export PYTHON_VERSION=3.4 $ make clean $ ./configure --enable-openmp $ make $ sudo make install $ ipython Python 3.4.0 (default, Apr 11 2014, 13:05:11) Type "copyright", "credits" or "license" for more information. IPython 3.1.0 -- 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]: import graph_tool --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-233a11917947> in <module>() ----> 1 import graph_tool /usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>() 100 101 from .dl_import import * --> 102 dl_import("from . import libgraph_tool_core as libcore") 103 __version__ = libcore.mod_info().version 104 /usr/lib/python3/dist-packages/graph_tool/dl_import.py in dl_import(import_expr) 55 56 try: ---> 57 exec(import_expr, local_dict, global_dict) 58 finally: 59 sys.setdlopenflags(orig_dlopen_flags) # reset it to normal case to /usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>() ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0: undefined symbol: PyClass_Type On Sun, Jun 14, 2015 at 2:58 PM, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 27.05.2015 22:31, Tiago de Paula Peixoto wrote:
On 19.05.2015 07:46, Ryan Compton wrote:
I'm having trouble with my vertex text running off the edge of the canvas.
For an example see:
http://ryancompton.net/assets/darknet-market-basket-analysis/evo_market_labe...
I got the impression that "fit_view" with a float would scale things properly but it does not seem to change anything.
Indeed there seems to be a bug with the fit_view option. I'll provide a fix.
I've finally fixed this now in git.
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 21.06.2015 22:22, Ryan Compton wrote:
Any advice on building from the git repo for python 3? Here's what I get (ubuntu 14.04):
$ export PYTHON=/usr/bin/python3 $ export PYTHON_VERSION=3.4 $ make clean $ ./configure --enable-openmp $ make $ sudo make install $ ipython
Python 3.4.0 (default, Apr 11 2014, 13:05:11) Type "copyright", "credits" or "license" for more information.
IPython 3.1.0 -- 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]: import graph_tool --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-233a11917947> in <module>() ----> 1 import graph_tool
/usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>() 100 101 from .dl_import import * --> 102 dl_import("from . import libgraph_tool_core as libcore") 103 __version__ = libcore.mod_info().version 104
/usr/lib/python3/dist-packages/graph_tool/dl_import.py in dl_import(import_expr) 55 56 try: ---> 57 exec(import_expr, local_dict, global_dict) 58 finally: 59 sys.setdlopenflags(orig_dlopen_flags) # reset it to normal case to
/usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>()
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0: undefined symbol: PyClass_Type
As you can see from the shared library name, the boost::python that is being used was compiled with python 2.7, while graph-tool was compiled with 3.4. Do you have a python 3 version of boost::python installed? If yes, try passing the correct suffix value to --with-boost-python. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
This worked for me: $./configure --enable-openmp --with-boost-python=py34 ⏎ fit_view works to now, thanks! On Sun, Jun 21, 2015 at 4:44 PM, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 21.06.2015 22:22, Ryan Compton wrote:
Any advice on building from the git repo for python 3? Here's what I get (ubuntu 14.04):
$ export PYTHON=/usr/bin/python3 $ export PYTHON_VERSION=3.4 $ make clean $ ./configure --enable-openmp $ make $ sudo make install $ ipython
Python 3.4.0 (default, Apr 11 2014, 13:05:11) Type "copyright", "credits" or "license" for more information.
IPython 3.1.0 -- 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]: import graph_tool
---------------------------------------------------------------------------
ImportError Traceback (most recent call last) <ipython-input-1-233a11917947> in <module>() ----> 1 import graph_tool
/usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>() 100 101 from .dl_import import * --> 102 dl_import("from . import libgraph_tool_core as libcore") 103 __version__ = libcore.mod_info().version 104
/usr/lib/python3/dist-packages/graph_tool/dl_import.py in dl_import(import_expr) 55 56 try: ---> 57 exec(import_expr, local_dict, global_dict) 58 finally: 59 sys.setdlopenflags(orig_dlopen_flags) # reset it to normal case to
/usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>()
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0: undefined symbol: PyClass_Type
As you can see from the shared library name, the boost::python that is being used was compiled with python 2.7, while graph-tool was compiled with 3.4. Do you have a python 3 version of boost::python installed? If yes, try passing the correct suffix value to --with-boost-python.
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
participants (2)
-
Ryan Compton -
Tiago de Paula Peixoto