Commit 27fd68c2 authored by Yan's avatar Yan
Browse files

Path can be disabled in MS image clipping

parent caaad18d
......@@ -14,7 +14,7 @@ from . import zcetools_help
from . import reactivitytools
__version__ = "0.0.42"
__version__ = "0.0.43"
__all__ = ['config', 'datatools', 'docks', 'drltools', 'datasets',
......
......@@ -222,7 +222,7 @@ def paint_override(self, augCanvas):
for i, line in enumerate(data)]
xtics = int(cf.settings().value(self.conftype.format("xtics")))
self.plot.locator_params(nbins=xtics, axis='x')
if augCanvas.ds:
if augCanvas.ds and cf.settings().value("imggen/path", type=bool):
self.plot.set_title(Path(
*Path(augCanvas.ds.filename).resolve().parts[-2:]), loc="right")
......
......@@ -35,6 +35,7 @@ def settings():
("imggen/drlspec_xinch", 10),
("imggen/drlspec_yinch", 4),
("imggen/drlspec_dpi", 300),
("imggen/path", True),
("imggen/reactspecspec_xinch", 3.5),
("imggen/reactspecspec_yinch", 2),
("imggen/reactspecspec_dpi", 300),
......@@ -138,6 +139,8 @@ def dial(parent):
"Figure x axis major ticks count", "imggen/msspec_xtics", config))
imggenlayout.addWidget(checkboxconf(
"Manual annotation only", "imggen/msspec_onlymanann", config))
imggenlayout.addWidget(checkboxconf(
"Isert path to exported image", "imggen/path", config))
tabs.addTab(imggentab, "Image clip/export")
timstoftab = QtWidgets.QWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment