Skip to main content

All Questions

1 vote
2 answers
51 views

I want to plot the route of a vector in a Lindenmayer system. How do I apply function to vector and get positions to plot?

This is my first question on stack overflow. I'm working on a script to plot a Lindenmayer-system. I already figured out how to do it by using the turtle package, but I would like to do it using ...
jaquesnado's user avatar
1 vote
1 answer
101 views

Pixels shown when saving colormap as vector graphics

I'm plotting (using pcolormesh) some colourmap figures to be added to my report written in Latex. I hope to save the figure as pdf so that I could use vector graphics in my report and Latex is happy ...
L L's user avatar
  • 31
0 votes
1 answer
55 views

How to avoid blank spaces between bars which are plotted next to each other when exporting as SVG from matplotlib?

I am plotting with matplolib a bar chart, where the bars are next to each other without a space in between. However, when exporting as .svg blank (white) spaces between the bars are visible. bar chart ...
tofri's user avatar
  • 43
2 votes
0 answers
993 views

How to export vector graphics to MS Powerpoint with editable text?

I plot graphs with Matplotlib in Python. When I save the plot as .svg and then import to MS Powerpoint, I can decompose the .svg into parts. However, I cant alter the axis annotation or plot title. Is ...
tamtam_'s user avatar
  • 131
2 votes
0 answers
189 views

Adding a vector graphic to a plot with transparent background

I am trying to add an image on top of a plot. The image (of a car) has a transparent background, that is supposed to be transparent in the plot too, meaning, I don't want it to cover what's behind. (...
LondonLiliput's user avatar
2 votes
0 answers
269 views

Vertical wind visualization in vector form

I have vertical wind data in masked array format, which I want to plot it into vector form. masked_array( data=[[-4.06932000e-04, -4.06932000e-04, -5.70601827e-04, ..., -2.43262173e-04, -2....
Veenita Roy's user avatar
0 votes
1 answer
236 views

How to plot a directed line segment (vector) given 2 points (Latitude and longitude) in Matplotlib

Imagine that we start from a Python list like: list=[[-3.7025753,40.417016,-3.7062202, 40.4285271, 20], [5.7023456,40.221567,3.67823, 41.27236, 10]] Where: First element is longitude of point A (Ex. ...
Carlos's user avatar
  • 133
2 votes
2 answers
1k views

Reduce size on disk of vectorized scatter plot with many overlapping points and alpha

When plotting scatter plots in matplotlib and saving to a vector format, in this case PDF, the generated file size is scaling with the number of points. Since I have lots of points with large amount ...
JE_Muc's user avatar
  • 5,619
1 vote
0 answers
383 views

matplotlib.pyplot.fill pdf export is different to figure in IDE

i wrote a script for plotting with python3. I used the fill command for filling squares: matplotlib.pyplot.fill(x,y,c) In the figure of my IDE everything is fine. But the exported pdf has to big ...
sebobi's user avatar
  • 11
1 vote
0 answers
202 views

Adding a vector graphic in to a matplotlib axis

For png images I could use: ax.imshow(plt.imread('./image.png')) It is possible to use something similar but for svg or pdf images?
heracho's user avatar
  • 620
16 votes
4 answers
9k views

Flow visualisation in python using curved (path-following) vectors

I would like to plot a vector field with curved arrows in python, as can be done in vfplot (see below) or IDL. You can get close in matplotlib, but using quiver() limits you to straight vectors (see ...
Kieran Hunt's user avatar
  • 1,808
3 votes
1 answer
4k views

Is there an efficient way to store 2D plots as a vector graphic in python?

I'm currently trying to store python plots as vector graphics to improve their appearance in a latex document. For 1D plots this works quite fine: import numpy as np import matplotlib as mpl mpl.use('...
Forrest Thumb's user avatar
3 votes
1 answer
3k views

python - 3D visualisation of surfaces and shapes in vector graphics

In view of a comment to the original question, I want to stress the following two points that should apply to an answer to this question: 1) The final plot should be a true vector graphic, similar to ...
Quantum's user avatar
  • 193
2 votes
0 answers
2k views

Python & Inkscape: SVG-to-EMF conversion breaks down?

I am trying to automatically convert an SVG graphic to EMF with Python, using Inkscape on the command line. My code is from subprocess import call import matplotlib.pyplot as plt from numpy import ...
rmnboss's user avatar
  • 103
13 votes
1 answer
6k views

Vector axes but raster points for Matplotlib scatter plots

I have a Matplotlib scatter plot with 10,000+ points that I plan to insert as a figure in a LaTeX document for publication. I would like the plot points to be raster graphics (e.g. PNG) because ...
John Jumper's user avatar

15 30 50 per page