Open andersonbrito opened 4 years ago
What is your matplotlib version?
import matplotlib
print (matplotlib.__version__)
I'm using the version 3.1.3
Hmmm, same version I have on my machine, and I don't get any error.
Try adding this at the top of your script:
import matplotlib
matplotlib.use('agg')
Thank you, @Zulko.
I tried now using matplotlib.use("Agg")
, the error is gone. However, I've been only able to see the results as an exported PNG/PDF file.
from dna_features_viewer import BiopythonTranslator
ax, _ = annotation.plot()
annotation.plot_legend(ax=ax)
ax.figure.tight_layout()
ax.figure.savefig(path + "custom_bopython_translator.pdf")
Which command one can use to see the plot on XQuartz?
Is it possible with the Agg
renderer?
Hi,
Thank you for creating this useful resource.
I'm trying to run the example shown in "Reading the features from a GenBank or GFF file", using the code below:
... but I'm getting this error. Could you point me to a solution? I couldn't find it among the existing 'Issues'. Thank you