Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib #47

Merged
merged 5 commits into from
Dec 8, 2016
Merged

Matplotlib #47

merged 5 commits into from
Dec 8, 2016

Conversation

kinga322
Copy link
Contributor

@kinga322 kinga322 commented Dec 8, 2016

Add basic axes labels with sequences names. Show sequence on the axis if it is short. Save plot to file. #34 #35

@coveralls
Copy link

coveralls commented Dec 8, 2016

Coverage Status

Coverage decreased (-0.8%) to 25.446% when pulling 1abfa33 on matplotlib into bf5c878 on master.

file_data = QFileDialog.getSaveFileName(
self,
'Choose a directory',
'', # use the last (or default) directory. It HAS to be str
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was very useful comment, I think it should remain in place ;)

'', extensions_string,
None,
QFileDialog.DontUseNativeDialog)
file_name = file_data[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if user clicks cancel in the file dialog?

Traceback (most recent call last):
  File "/home/krassowski/Desktop/KN_BiBS/dotplot/gui.py", line 113, in select_save_file_dialog
    extension = extensions[file_data[1]]
KeyError:

@@ -202,6 +221,7 @@ def create_canvas(self):
self.canvas = text_area

self.canvas_box.addWidget(self.canvas)
self.canvas_box.addWidget(savebutton)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice button. I would also add an entry in the menu. Just saying, not necessary.

@krassowski
Copy link
Member

The code is of good quality, added functions have concise docstrings. We need to add some tests to GUI later. There are some things which should be improved in the future, I listed them in comments. As the changes here are of high priority and overall quality is satisfying I will merge this straightaway. Many thanks @kinga322!

@krassowski krassowski merged commit 2d47d99 into master Dec 8, 2016
@krassowski krassowski mentioned this pull request Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants