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
0
votes
1 answer

Filling a closed curve in PyX (python) failing

I am clearly misunderstanding how closed curves and filling a closed curve works in PyX. I'm building a closed curve from four parts, but the filling fails depending on how I define one of the four curves. Below is a minimal working/failing example…
Rami Luisto
  • 229
  • 1
  • 9
0
votes
1 answer

Python PyX plot: PDF file inclusion

I want to include a PDF file in a PyX plot in Python. To include SVG file: from pyx import * c = canvas.canvas() c.insert(svgfile.svgfile(0, 0, "file.svg")) c.writeSVGfile("output") To include EPS file: from pyx import * c =…
Nigel1
  • 95
  • 8
0
votes
1 answer

Pycharm doesn't recognize _mask.pyx from Detectron (libs installed with Anaconda)

I'm trying to execute the infer.py file from the Detectron project, but when I run it, I get the following error : .../miniconda3/envs/testcaffe2/bin/python .../PycharmProjects/Detectron-master/tools/infer.py --cfg…
YellowishLight
  • 238
  • 3
  • 21
0
votes
0 answers

How to compile sklearn file *.pyx

When I want to compile the file in scikit-learn-master\sklearn\ensemble_gradient_boosting.pyx, I use the command "python setup.py build" to compile the _gradient_boosting.pyx, but it have some error follow. So I want to konw how to compile the pyx…
0
votes
2 answers

Plotting a graph using PyX graphics package in Python

I've created a script that downloads information about specific currency over a period of month and then stores it as .DAT file. An exemplary .DAT file looks like this: 2015-11-19 4.2477 2015-11-18 4.2509 2015-11-17 4.2433 2015-11-16 …
aleksy.t
  • 267
  • 2
  • 18
0
votes
1 answer

python/cython compiling pyx: fatal error: capsule.h: No such file or directory

I recently worked on a python project where I need to import some .pyx files. However, I had a hard time import it as .pyx and compile it with the following lines: import pyximport pyximport.install() from . import kl The error is fatal error:…
Haohan Wang
  • 607
  • 2
  • 9
  • 25
0
votes
1 answer

PyX python scripts write files to disc but not to screen

Hi: I have a win 7 64 bit machine and have tried using the examples for PyX (http://pyx.sourceforge.net/examples/drawing/index.html). I have tried them with python 2.7 and with 3.5 (In uninstalled 2.7 before installing 3.5). In all cases, PyX…
Steve Elster
  • 21
  • 1
  • 3
0
votes
1 answer

Matching two vector paths

I have several vector paths and a query path and now I am trying to get the path which is most similar to the query path. I can access length(perimeter) of each path, and width and height of their bounding boxes. I am using python and using pyx…
Selie
  • 43
  • 6
0
votes
1 answer

Drawing series of rectangles with PyX

I am using PyX and trying to create a series of rectangles such that every next rectangle must start where the last rectangle ends. The code goes like this: //start of loop with index i back_pos = dep_list[i-1] front_pos =…
ehmath
  • 119
  • 2
  • 8
-1
votes
1 answer

Problem with Tutorial About Making a Python .pyx File

I've looked for every possible way to create a .pyx file from saving a .py file. I followed this YouTube tutorial. However, when I used VSCode, it returned a blank .pyx file.
ht herkool
  • 29
  • 2
  • 9
-1
votes
1 answer

plot using PyX with Strings and Floats

I have a list: [ [List of dates(string)] [List of values(floats) ] How can i make plot of it using PyX? g.plot(graph.data.values(x=values[0], y=values[1])) is not working
1 2 3
4