Skip to content

Commit

Permalink
fix: minor visualization issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 16, 2020
1 parent 12eba53 commit 96b4ac7
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
- fix: main window not focused after startup
- fix: Windows installation location was confusing and did
not coincide configuration file location
- setup: bump afmformats from 0.11.0 to 0.12.0
- fix: files are sorted before batch loading
- fix: change visualization of fitting region by gray
wraparound instead of yellow highlight (not visible
on all screens)
- setup: bump afmformats from 0.11.0 to 0.12.2
(improved JPK file format speed)
0.8.2
- setup: bump matplotlib to >=3
Expand Down
1 change: 1 addition & 0 deletions docs/scrots/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
_*.png
*.jpk-force
*.jpk-force-map
*.tsv
figshare_PAAm
6 changes: 3 additions & 3 deletions docs/scrots/make_scrots_qg_import_ts.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""Screenshots for quick guide import ts (not working automatically)"""
import pathlib
import sys
import time

from PyQt5 import QtCore
from PyQt5.QtWidgets import QApplication
from pyjibe.head.main import PyJibe

jpkfile = pathlib.Path("figshare_PAAm/PAAm_Compliant_ROI1_force-save-"
jpkfile = pathlib.Path("PAAm_Compliant_ROI1_force-save-"
+ "2019.10.25-10.42.02.660.jpk-force")


Expand Down Expand Up @@ -37,7 +38,6 @@ def cleanup_autosave(jpkfile):
war.grab().save("_qg_import_ts.png")

print("Screenshot must be taken manually")
import IPython # noqa: E402
IPython.embed()
time.sleep(10)

mw.close()
Binary file modified docs/scrots/ui_fd_main.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/scrots/ui_fd_tab_edelta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/scrots/ui_fd_tab_fit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/scrots/ui_fd_tab_info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/scrots/ui_fd_tab_preproc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/scrots/ui_fd_tab_qmap.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion docs/sec_interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ software as a *setpoint* using an active feedback loop.
The screenshot shows a typical data analysis in PyJibe. A *.jpk-force-map*
file has been loaded. The plot at the top shows the experimental FD curve
(approach light blue, retract light red), the model fit (dark blue), and the
fitting region (shaded yellow). Below are the fit residuals. On the right
fitting region (white region, bounded by gray background in the upper plot).
Below are the fit residuals. On the right
are the main controls (discussed in the sections below). At the bottom
is the curve list, highlighting which curve is currently shown at the top.
At the bottom right are the :ref:`curve list controls <sec_ui_fd_curvelist>`.
Expand Down
Binary file modified docs/tutorials/t01_comparison.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tutorials/t01_fd_compliant.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tutorials/t01_fd_stiff.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tutorials/t01_main_init.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions pyjibe/fd/mpl_indent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ def __init__(self):
"""Matplotlib plot for force-indentation data"""
# Add matplotlib figure
self.figure = Figure(facecolor="none", tight_layout=True,
frameon={"pad": .0})
frameon=True)
gs = gridspec.GridSpec(2, 1, height_ratios=[4, 1])

# main axis
self.axis_main = self.figure.add_subplot(gs[0])
self.axis_main.grid()
self.plots = {}
self.axis_main.set_facecolor('#DDDDDD')
self.plots["fit range"] = self.axis_main.axvspan(np.pi,
np.sqrt(2),
facecolor="#FDFDF0",
facecolor="#FFFFFF",
edgecolor="none",
label="fit range")
self.plots["approach"] = self.axis_main.plot(range(10),
Expand Down
2 changes: 1 addition & 1 deletion pyjibe/head/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def on_tool_convert(self):
def load_data(self, files, retry_open=None, separate_analysis=False):
# approach-retract data files
supfiles = []
for ff in files:
for ff in sorted(files):
path = pathlib.Path(ff)
if path.suffix in registry.known_suffixes:
supfiles.append(ff)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
license="GPL v3",
description=description,
long_description=open('README.rst').read() if exists('README.rst') else '',
install_requires=["afmformats>=0.12.0",
install_requires=["afmformats>=0.12.2",
"appdirs",
"nanite>=1.6.2",
"matplotlib>=3", # NavigationToolbar2QT mod
Expand Down

0 comments on commit 96b4ac7

Please sign in to comment.