Skip to content

Instantly share code, notes, and snippets.

@psycho23
Last active May 23, 2017 18:55
Show Gist options
  • Save psycho23/8d495f8b31c05fec6c0cbb6e5c5c40fb to your computer and use it in GitHub Desktop.
Save psycho23/8d495f8b31c05fec6c0cbb6e5c5c40fb to your computer and use it in GitHub Desktop.
spectrogram https://github.com/le1ca/spectrogram/issues/2 diff #1 from psycho23 to have a 13.89% chance to aid patch creation for when python matplotlib 1.3.* is installed and the extra command-line arg/opts '1024' and 'linear' are absent
4a5
> import warnings #only used once to signify a variable change due to the use of an older matplotlib library.
89c90,97
< plt.yscale('symlog', linthreshy=100, linscaley=0.25)
---
> # < https://github.com/le1ca/spectrogram/issues/2 >
> matplotlib_linscaley_replacement_placeholder=0.25
> if matplotlib.__version__[0:3] == '1.3':
> matplotlib_linscaley_replacement_placeholder=1
> warnings.warn('You are using matplotlib 1.3.* (and not >= 1.4.0). Therefore linscaley must equal 1, not 0.25')
> # </ https://github.com/le1ca/spectrogram/issues/2 >
>
> plt.yscale('symlog', linthreshy=100, linscaley=matplotlib_linscaley_replacement_placeholder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment