SVG file truncated when opened with AI (Inkscape fails to open file)

30 views
Skip to first unread message

Dan

unread,
Dec 12, 2014, 4:15:11 PM12/12/14
to pyqt...@googlegroups.com
I'm experiencing some strange behavior with files exported as SVG. 

The files attached here were generated with the following bit of code (just written in the ipython repl): 

import pyqtgraph as pg
import pandas as pd

filename = "Cell1-Wash-out-001_Cycle00001_VoltageRecording_001.csv"
data = pd.read_csv(filename)

pg.setConfigOption('background', 'w')
pg.setConfigOption('foreground', 'k')

pg.plot(data['Time(ms)'], data[' Primary'], pen='b')


Then I just exported through the context menu generated by right clicking on the plot. 


Attached are the actual svg file, screenshots of the file opened with IE and AI, as well as the raw data file above. 

Looking at what essentially is a preview of the file with IE shows that it has exported fine. However, when I open it with AI a large portion of the plot is simply missing. 

I have tried opening this with Inkspace as well, but it crashes the software. 


Any idea what's going on here. Using Python 3.4.1, PyQt4 (4.10.4), and pyqtgraph 0.9.8
issue-AI-img.JPG
issue-IE-img.JPG
working-test.svg
Cell1-Wash-out-001_Cycle00001_VoltageRecording_001.csv

Dan

unread,
Dec 12, 2014, 4:16:53 PM12/12/14
to pyqt...@googlegroups.com
Attached the wrong SVG file (although the one I attached shows the same issue).

Correct file attached now
test-svg.svg

Dan

unread,
Jan 15, 2015, 6:10:49 PM1/15/15
to pyqt...@googlegroups.com
Wanted to wait until after the holidays to check in on this again. I've update to the newest version of pyqtgraph. Still seeing this issue. 
Reply all
Reply to author
Forward
0 new messages