Repository navigation
MRG: Unify axis labeling - #5079
Merged
Merged
Conversation
| ax.set_title(title) | ||
| ax.set_xlim(freqs[0], freqs[-1]) | ||
| ax.set_xlabel('Frequency (Hz)') | ||
| ax.set(ylabel=ylabel, title=title, xlim=(freqs[0], freqs[-1])) |
Contributor
There was a problem hiding this comment.
What, this is a thing? I never knew!
agramfort
reviewed
Apr 2, 2018
| False, line_alpha=1.) | ||
| for ax in axes: | ||
| ax.set_xlabel('Time (ms)') | ||
| plt.setp(axes, xlabel='Time (ms)') |
Member
There was a problem hiding this comment.
you want to change all these to 'Time (s)' right?
Member
Author
There was a problem hiding this comment.
In #3164 this is discussed, yes. It's not implemented here, though, and would be better as a follow-up PR if people agree we should do it.
| ax1.plot(times, data_cln.T, color='k') | ||
| ax1.set_xlabel('time (s)') | ||
| ax1.set_xlim(times[0], times[-1]) | ||
| ax1.set_xlim(times[0], times[-1]) |
| sl = slice(0 if fscale == 'linear' else 1, None, None) | ||
| axes[2].plot(f[sl], gd[sl], color=color, linewidth=2, zorder=4) | ||
| axes[2].set(xlim=flim, ylabel='Group delay (sec)', xlabel='Frequency (Hz)', | ||
| axes[2].set(xlim=flim, ylabel='Group delay (s)', xlabel='Frequency (Hz)', |
Contributor
There was a problem hiding this comment.
Maybe it would be nicer if you did fig, (time_ax, freq_ax, delay_ax) = plt.subplots(3, squeeze=True) in 754.
Contributor
|
LGTM otherwise |
| @@ -760,7 +756,7 @@ def plot_filter(h, sfreq, freq=None, gain=None, title=None, color='#1f77b4', | |||
| f = omega * sfreq / (2 * np.pi) | |||
| axes[0].plot(t, h, color=color) | |||
| axes[0].set(xlim=t[[0, -1]], xlabel='Time (sec)', | |||
| ax.set_xlim(xlim) | ||
| ax.set_xlabel('Time (sec)') | ||
| ax.set_ylabel('Amplitude (nAm)') | ||
| ax.set(xlim=xlim, xlabel='Time (sec)', ylabel='Amplitude (nAm)') |
Codecov Report
@@ Coverage Diff @@
## master #5079 +/- ##
==========================================
- Coverage 88% 87.99% -0.01%
==========================================
Files 356 356
Lines 64951 64925 -26
Branches 11098 11094 -4
==========================================
- Hits 57157 57131 -26
Misses 4969 4969
Partials 2825 2825 |
Member
|
thx @larsoner |
Merged
britta-wstnr
pushed a commit
to britta-wstnr/mne-python
that referenced
this pull request
Jul 5, 2018
* FIX: Unify axis labeling * FIX: Cleaner vars * FIX: Missed a sec
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4534.
This PR:
raw.plot_psd().sphx_glr_*-based linking rather than customtut_ones to make things more standard.