Skip to content

Commit

Permalink
plot_painting.py: fix namespace and set axis range
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed Apr 3, 2018
1 parent 8823744 commit 7be0975
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/plot_painting.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python3
"""
'''
Summarise species composition of Genome Painter results into blocks of n size and generate plot.
Output is an interactive plotly plot which can be viewed in a modern web brower
Example usage:
./plot_painting.py --genome_painter_fp genome_painter_results.tsv.gz --output_fp genome_painter_plot.html
"""
'''


import argparse
Expand Down Expand Up @@ -140,9 +140,10 @@ def main():
layout = {'shapes': contig_shapes}
else:
layout = plotly.graph_objs.Layout()
layout['yaxis'] = dict(range=[-5, 5])

# Create plot
plotly.offline.plot({'data': traces, 'layout': layout}, show_link=False, auto_open=False, filename=output_fp)
plotly.offline.plot({'data': traces, 'layout': layout}, show_link=False, auto_open=False, filename=args.output_fp)


def get_filehandle_class(filepath):
Expand Down

0 comments on commit 7be0975

Please sign in to comment.