Questions tagged [pyx]

PyX is a Python package for the creation of PostScript, PDF, and SVG files. It combines an abstraction of the PostScript drawing model with a TeX/LaTeX interface. Complex tasks like 2d and 3d plots in publication-ready quality are built out of these primitives.

PyX is in steady development. Planned features are listed on the roadmap. The current release, PyX 0.15, is available at the download section of the project page.

57 questions
7
votes
3 answers

PyX not installed correctly when using scapy

I am trying to use scapy in python 3.6 to parse pcap files, and of the features I am trying to use is pdfdump. from scapy.all import * packets = rdpcap('***path***/nitroba.pcap') for packet in packets[0:1]: …
SockworkOrange
  • 355
  • 4
  • 14
4
votes
1 answer

Install PyX under python 2.7.6

I am trying to install PyX in yosemite under python 2.7.6 Initially, the setup looks ok python setup.py install running install running build running build_py running install_lib running install_egg_info Removing…
Just_Newbie
  • 447
  • 1
  • 4
  • 11
4
votes
1 answer

How to do the astronomical symbol "\sun" in PyX

I've been trying to put the astronomical symbol of the sun on a graph using PyX, but so for with no success. The code I have is the following: from pyx import * from pylab import * x=arange(1,5,0.1) …
Néstor
  • 585
  • 8
  • 20
3
votes
5 answers

When I open the nvim init.vim file, this error comes for Neoclide coc.vim

I get this error when I try to open the init.vim file for neovim, for neoclide coc.vim. Any solutions? in WSL(Ubuntu) [coc.nvim] Error on execute :pyx command, ultisnips feature of coc-snippets requires pyx support on vim. use :CocOpenLog for…
Agrock
  • 59
  • 1
  • 4
3
votes
2 answers

Python Pyx: color.gradient for graph.style.rect

I wanna make a density plot with PyX package in python. I use the code from pyx import * import numpy import math from pyx.graph import axis g = graph.graphxy(height=8, width=8, x=graph.axis.linear(min=0.0, max=2.0,…
Nigel1
  • 95
  • 8
3
votes
1 answer

pyx module: how to make color transparent

i tried (and failed!) to get pyx to draw a transparent circle over a rectangle. there is an entry about transparency in the manual but i was unable to figure out how to use it. matplotlib would use alpha for that - but i could find no such entry in…
hiro protagonist
  • 44,693
  • 14
  • 86
  • 111
3
votes
2 answers

How can I pip install pyx package from externally hosted source?

Pip knows about the pyx package: $ pip search pyx PyX - Python package for the generation of PostScript and PDF files Trying to install it gives an error: $ pip install pyx Collecting pyx Could not find any downloads that satisfy the requirement…
pheon
  • 2,867
  • 3
  • 26
  • 33
3
votes
2 answers

Drawing braces with Pyx

How can I draw a “braced” line between two arbitrary points with Pyx? It would look something like this: Brace example http://tof.canardpc.com/view/d16770a8-0fc6-4e9d-b43c-a11eaa09304d
Bastien Léonard
  • 60,478
  • 20
  • 78
  • 95
2
votes
1 answer

Create a graph in a TKinter window?

I'm working on writing a script that will run through data and create a graph. That is easy and done. Unfortunately the graphing modules I am using only create the graphs in a pdf format. I would like to have the graphs displayed in an interactive…
ahodder
  • 11,353
  • 14
  • 71
  • 114
2
votes
0 answers

No module named error. How to import function from .pyx file in python from different directories rooted to same directory?

I am running code from main.py. Following is my directory structure: I'm using Python 3.6 and Linux. PackA PackB PackC _main.py PackD cython_file.pyx def func() #…
user3924729
  • 29
  • 1
  • 4
2
votes
0 answers

Python doesn't understand PYX files in PYTHONPATH

I have included some directories in PYTHONPATH and got and exception Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.6/encodings/__init__.py", line 31, in
Dims
  • 47,675
  • 117
  • 331
  • 600
2
votes
2 answers

How to generate any color in PyX

Many Visualisation libraries and languages provide easy ways of generating any color. for example you could simple add a style tag with a css color code to set the color of an object in html. Is there a similiar way to set the color of a pyx drawing…
Sina Mansour L.
  • 418
  • 4
  • 8
2
votes
1 answer

Pyx unicode text

So I am trying to generate postscript from Python. Currently trying with PyX 0.14.1 on Python3.4.2, but I am open to suggestions, if you know something simpler. I was following mostly the suggestions found on the PyX mailing list in this thread.…
mkiever
  • 894
  • 5
  • 13
2
votes
1 answer

Scapy graphical dump of custom protocols

I defined the following packet: p = IP()/TCP()/Unique() where Unique is a new layer: class Unique(Packet): name = "Unique" fields_desc=[ IntField("a", 0), IntField("b", 0), IntField("c", 0)] I want to make a graphical PDF…
user5925234
1
vote
0 answers

Not able to import file with .pyx extension in jupyter

I was trying to convert a code from python 2 to python 3 but one module has a .pyx extension. I tried to import the below code to import a .pyx extension file in jupyter notebook but its throwing an error. Tried the same in spyder too but then it…
1
2 3 4