-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and updated env handling.
- Loading branch information
Showing
4 changed files
with
114 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
""" | ||
ePSproc additional plotting utility functions | ||
13/01/22 | ||
""" | ||
|
||
# Show plot from tmo-dev - assumes dict based data structure | ||
# def showPlot(self, dim, run, pType='curve'): | ||
# """Render (show) specified plot from pre-set plot dictionaries (very basic!).""" | ||
# | ||
# try: | ||
# if self.__notebook__: | ||
# display(self.data[run][pType][dim]) # If notebook, use display to push plot. | ||
# else: | ||
# return self.data[run][pType][dim] # Otherwise return hv object. | ||
# | ||
# except: | ||
# print(f'Plot [{run}][{pType}][{dim}] not set.') | ||
|
||
# Basic show plot routine | ||
def showPlot(plotObj, returnPlot = False, __notebook__ = False): | ||
"""Render (show) specified plot if notebook (very basic!).""" | ||
|
||
# try: | ||
if __notebook__: | ||
display(plotObj) # If notebook, use display to push plot. | ||
|
||
if returnPlot or not __notebook__: | ||
return plotObj # Return hv object. | ||
|
||
# except: | ||
# print(f'Plot [{run}][{pType}][{dim}] not set.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters