You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear
I would like to add multiple subplot in order to display annotation from genbank and sample feature from external input.
Each sample have a subplot in order to set accordingly a title
which a simplified version give:
but that do not work as ax would be define twice one time by my script and another time by the library which give this stacktrace:
File "…/lib/python3.7/site-packages/fr/cea/cnrgh/variant/variation_viewer/__main__.py", line 183, in create_figure
_ = graphic_annotation.plot_on_multiple_pages(output, nucl_per_line=5000, n_lines=6, plot_sequence=False, ax=axe1, with_ruler=False, strand_in_label_threshold=4)
File "…/lib/python3.7/site-packages/dna_features_viewer/GraphicRecord/MultilinePlottableMixin.py", line 150, in plot_on_multiple_pages
**plot_params
File "…/lib/python3.7/site-packages/dna_features_viewer/GraphicRecord/MultilinePlottableMixin.py", line 78, in plot_on_multiple_lines
line_ax = plot_line(line_index)
File "…/lib/python3.7/site-packages/dna_features_viewer/GraphicRecord/MultilinePlottableMixin.py", line 73, in plot_line
**plot_params
Hi, thanks, yes I can confirm that ax=axe1 in plot_on_multiple_pages() on line 6 causes the problem.
To document the issue: the plot_line() function takes ax as an argument and ax is also passed with **plot_params.
Also, this function is used without arguments on line 78 and with ax on line 90.
I looked into it but not sure there is a quick fix.
(Would it solve the problem if you used graphic_annotation.plot_on_multiple_lines() and the resulting plot instead?)
Dear
I would like to add multiple subplot in order to display annotation from genbank and sample feature from external input.
Each sample have a subplot in order to set accordingly a title
which a simplified version give:
but that do not work as ax would be define twice one time by my script and another time by the library which give this stacktrace:
DnaFeaturesViewer/dna_features_viewer/GraphicRecord/MultilinePlottableMixin.py
Line 62 in 6ace5cd
The text was updated successfully, but these errors were encountered: