资源简介
ReadMe
Release Version
beta_1.0
index.py
imageMatlab.py
This is more or less a wrapper for Matplotlib imaging functions such that their behavior is equivalent, in terms of colormap, aspect and so forth, to the expected behavior of Matlab's functions.
sepVocal.py
This script can be used to exe
代码片段和文件信息
#!/usr/bin/python
#
# a script to define some matlab compatible image functions
# copyright (C) 2010 Jean-Louis Durrieu
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation either version 3 of the License or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not see .
import matplotlib.pyplot as plt
# The following instructions define some characteristics for the figures
# In order to be able to use latex formulas in legends and text in
# figures:
## plt.rc(‘text‘ usetex=True)
# Turn on interactive mode to display the figures:
plt.ion()
# Characteristics of the figures:
fontsize = 20;
linewidth=4
markersize = 16
# Setting the above characteristics as defaults:
plt.rc(‘legend‘fontsize=fontsize)
plt.rc(‘lines‘markersize=markersize)
plt.rc(‘lines‘lw=linewidth)
def imageM(*args**kwargs):
“““
imageM(*args **kwargs)
This function essentially is a wrapper for the
matplotlib.pyplot function imshow such that the actual result
looks like the default that can be obtained with the MATLAB
function image.
The arguments are the same as the arguments for function imshow.
“““
# The appearance of the image: nearest means that the image
# is not smoothed:
kwargs[‘interpolation‘] = ‘nearest‘
# keyword ‘aspect‘ allows to adapt the aspect ratio to the
# size of the window and not the opposite (which is the default
# behaviour):
kwargs[‘aspect‘] = ‘auto‘
kwargs[‘origin‘] = 0
plt.imshow(*args**kwargs)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-08-21 03:00 python_tutorial_SVS-master\
目录 0 2016-08-21 03:00 python_tutorial_SVS-master\.idea\
文件 3 2016-08-21 03:00 python_tutorial_SVS-master\.idea\.name
文件 459 2016-08-21 03:00 python_tutorial_SVS-master\.idea\SVS.iml
文件 159 2016-08-21 03:00 python_tutorial_SVS-master\.idea\encodings.xm
文件 735 2016-08-21 03:00 python_tutorial_SVS-master\.idea\misc.xm
文件 258 2016-08-21 03:00 python_tutorial_SVS-master\.idea\modules.xm
文件 180 2016-08-21 03:00 python_tutorial_SVS-master\.idea\vcs.xm
文件 41729 2016-08-21 03:00 python_tutorial_SVS-master\.idea\workspace.xm
文件 1811 2016-08-21 03:00 python_tutorial_SVS-master\README.md
文件 41599 2016-08-21 03:00 python_tutorial_SVS-master\SIMM.py
文件 1974 2016-08-21 03:00 python_tutorial_SVS-master\imageMatlab.py
文件 10671 2016-08-21 03:00 python_tutorial_SVS-master\index.py
文件 41311 2016-08-21 03:00 python_tutorial_SVS-master\sepVocal.py
文件 2678 2016-08-21 03:00 python_tutorial_SVS-master\test.py
文件 7975 2016-08-21 03:00 python_tutorial_SVS-master\tracking.py
评论
共有 条评论