Jhsmit Posted January 28, 2021 Share Posted January 28, 2021 I'm generating a pdf from python with the following code: ``` import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = np.ones_like(x) yerr = 5*np.ones_like(x) fig, ax = plt.subplots() ax.errorbar(x, y, yerr=yerr, fmt='o') ax.set_ylim(0, 2) plt.savefig('Errorbar_graph.pdf') ``` When I import (drop and drag) or open the file in Affinity Publisher or Designer, the graph is not shown correctly. The errorbars are extending over the graph's axis. Opening in Adobe reader does work correctly. I've attached a screenshot of what it should look like vs the affinity result. It seems that the errorbars aren't 'clipped' correctly on the axis. I'm using publisher/designer v1.8.5.703 Errorbar_graph.pdf Quote Link to comment Share on other sites More sharing options...
Staff Gabe Posted January 29, 2021 Staff Share Posted January 29, 2021 Hi @Jhsmit Thanks for spotting this. Issue logged. Quote Link to comment Share on other sites More sharing options...
Jhsmit Posted January 29, 2021 Author Share Posted January 29, 2021 For those who also run into this issue: my current workaround is to convert the .pdf file to .svg with pdf2svg. The resulting .svg file does show correctly. Exporting to .eps from matplotlib is also an option, however not for my use case this as .eps does not support rasterization. Quote Link to comment Share on other sites More sharing options...
Jhsmit Posted February 8, 2021 Author Share Posted February 8, 2021 @GabeIn v1.9 this issue can be circumvented by using passthrough pdf (export result bottom) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.