Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
eadb8ff7
Commit
eadb8ff7
authored
Jan 27, 2017
by
Somnath, Suhas
Browse files
Added new things to do in plot utils
parent
864eecf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/viz/plot_utils.py
View file @
eadb8ff7
...
...
@@ -269,6 +269,7 @@ def plot_map(axis, data, stdevs=2, **kwargs):
def
plot_loops
(
excit_wfm
,
datasets
,
line_colors
=
[],
dataset_names
=
[],
evenly_spaced
=
True
,
plots_on_side
=
5
,
x_label
=
''
,
y_label
=
''
,
subtitles
=
'Position'
,
title
=
''
,
central_resp_size
=
None
,
use_rainbow_plots
=
False
,
h5_pos
=
None
):
# TODO: Allow multiple excitation waveforms
"""
Plots loops from multiple datasets from up to 25 evenly spaced positions
...
...
@@ -610,7 +611,7 @@ def plot_cluster_h5_group(h5_group, y_spec_label, centroids_together=True):
axes : 1D array_like of axes objects
Axes of the individual plots within `fig`
"""
# TODO: The
label
and units for the main dataset itself are missing in most cases!
- ie. I don't know that the data is 'Current' and 'nA'
# TODO: The
quantity
and units for the main dataset itself are missing in most cases!
h5_labels
=
h5_group
[
'Labels'
]
try
:
h5_mean_resp
=
h5_group
[
'Mean_Response'
]
...
...
@@ -644,6 +645,7 @@ def plot_cluster_h5_group(h5_group, y_spec_label, centroids_together=True):
# Figure out the correct axes labels for label map:
pos_labels
=
get_formatted_labels
(
h5_pos_vals
)
# TODO: cleaner x and y axes labels instead of 0.0000125 etc.
if
centroids_together
:
return
plot_cluster_results_together
(
label_mat
,
mean_response
,
spec_val
=
np
.
squeeze
(
h5_spec_vals
[
0
]),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment