pvplot 1.6.2__tar.gz → 1.6.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pvplot
3
- Version: 1.6.2
3
+ Version: 1.6.4
4
4
  Summary: Plotting tool for EPICS PVs, ADO and LITE parameters
5
5
  Project-URL: Homepage, https://github.com/ASukhanov/pvplot
6
6
  Project-URL: Bug Tracker, https://github.com/ASukhanov/pvplot/issues
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python3
2
2
  """Plotting package for EPICS PVs (CA and PVA), LITE and ADO parameters.
3
3
  """
4
- __version__ = 'v1.6.2 2025-03-01'# Corrected for use with multiple namespaces
4
+ __version__ = 'v1.6.4 2025-09-23'# fixing for: pvplot -a'L:localhost:dev1:' -#0'yMin yMax'
5
5
  #TODO: if backend times out the gui is not responsive
6
6
  #TODO: move Add Dataset to Dataset options
7
7
  #TODO: add dataset arithmetics
@@ -687,8 +687,10 @@ class CustomViewBox(pg.ViewBox):
687
687
 
688
688
  # call the init method of the parent class
689
689
  super(CustomViewBox, self).__init__()
690
- self.setDefaultPadding(0.)# standard is 0.02
691
-
690
+ try:
691
+ self.setDefaultPadding(0.)# standard is 0.02
692
+ except:
693
+ printw('Old pyqtgraph? setDefaultPadding is not defined')
692
694
  # IMPORTANT: menu creation is deferred because it is expensive
693
695
  # and often the user will never see the menu anyway.
694
696
  self.menu = None
@@ -1006,7 +1008,7 @@ def add_curves(dockNum:int, curveMap:str):
1006
1008
  #docks = [x.split('.')[0] for x in curves]
1007
1009
  curves = MapOfDatasets.dtsDict.keys()
1008
1010
  docks = PVPlot.mapOfDocks.keys()
1009
- printv(f'>addcurves curves {curveMap} to {curves,docks}')
1011
+ printv(f'>add_curves {curveMap} to {curves,docks}')
1010
1012
  if dockNum not in docks:
1011
1013
  printv(f'adding new dock{type(dockNum),dockNum}')
1012
1014
  PVPlot.mapOfDocks[dockNum] = dockarea.Dock(str(dockNum),
@@ -1132,8 +1134,10 @@ class PVPlot():
1132
1134
  if pargs.dock:
1133
1135
  for par in pargs.dock:
1134
1136
  dockNum = par[0][0]
1135
- adopar = par[0][1:].lstrip()
1136
- add_curves(int(dockNum), {adopar:adopar})
1137
+ pars = par[0][1:].lstrip()
1138
+ for parName in pars.split():
1139
+ add_curves(int(dockNum), {parName:
1140
+ pargs.prefix+parName})
1137
1141
  else:
1138
1142
  # plots for the main dock
1139
1143
  if not ',' in pargs.parms:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pvplot"
7
- version = "1.6.2"
7
+ version = "1.6.4"
8
8
  authors = [
9
9
  { name="Andrei Sukhanov", email="cyxandr@gmail.com" },
10
10
  ]