arq5x / poretools

a toolkit for working with Oxford nanopore data
MIT License
243 stars 89 forks source link

Some PDF plots show with large symbols and fonts #156

Open splaisan opened 7 years ago

splaisan commented 7 years ago

On my machine at least, the circles for outliers in the quality distribution plot and the font for the occupancy plot are huge and mask the remaining of the plot (PDF output is almost black). As in R code, can I adjust some scaling factor somewhere to reduce the default size of symbols and fonts in PDF plots? pict1 pict2

Best Stephane

splaisan commented 7 years ago

apparently qualpos does not output png as other plotting modules do.

poretools qualpos --saveas quality-dist_plot.png ${fast5}/

INFO:poreminion:Processing data...
INFO:poreminion:Constructing box plot...
INFO:poreminion:Writing plot to file...
ERROR:poreminion:Unrecognized extension for quality-dist_plot.png! Try .pdf or .jpg
Traceback (most recent call last):
  File "/usr/local/bin/poretools", line 9, in <module>
    load_entry_point('poretools==0.6.0', 'console_scripts', 'poretools')()
  File "/usr/local/lib/python2.7/dist-packages/poretools-0.6.0-py2.7.egg/poretools/poretools_main.py", line 538, in main
    args.func(parser, args)
  File "/usr/local/lib/python2.7/dist-packages/poretools-0.6.0-py2.7.egg/poretools/poretools_main.py", line 55, in run_subtool
    submodule.run(parser, args)
  File "/usr/local/lib/python2.7/dist-packages/poretools-0.6.0-py2.7.egg/poretools/qual_v_pos.py", line 60, in run
    sys.exit()
NameError: global name 'sys' is not defined