由买买提看人间百态

topics

全部话题 - 话题: subplot
1 (共1页)
i**g
发帖数: 134
1
来自主题: Computation版 - matlab里subplot问题
subplot之后添加一个全高度的隐藏的axes,
对这个axes添加colorbar
subplot(2,2,1); surf(rand(10));
subplot(2,2,2) ....
h=axes('position',[0.85,0.12,0.05,0.8]);
caxis([0,1]);
colorbar
set(h,'visible','off')
w****s
发帖数: 12
2
来自主题: EE版 - Matlab subplot 求救
如果我已有若干 figures, 想把它们subplot到同一个figure 中去 怎么办?
I know the original use of the subplot is to subplot first, then plot.
thank you very much
W****A
发帖数: 143
3
好像直接用title(...)就是加总的
不要在subplot底下用
t***s
发帖数: 4666
4
来自主题: Computation版 - matlab里subplot问题
you can achieve these by manipulating the properties. subplot basically
just generate a set of axes with correct sizes.

contour
k*******5
发帖数: 387
5
就是在一个figure中显示多个图像,图像布满整个窗口,图像间只有几pixel的间隔,
我现在只能用imshow把图像显示出来,但imagesc不行,即使程序中我用imagesc,
但是实际显示的结果还是按imshow显示的,而如果我不自己设定figure的位置,高度,
宽度,直接用默认值则用subplot可以显示出imagesc后的结果,这个怎么回事那?请大
牛指点指点,十分感谢!
b*******t
发帖数: 33714
6
来自主题: TeX版 - 请问tex中如何实现这种图
\usepackage[caption=false]{subfig}
\usepackage[footnotesize]{caption}
\begin{figure}[htbp]\centering
\subfloat[]{\label{aa}\includegraphics{a.jpg}}
\subfloat[]{\label{bb}\includegraphics{b.jpg}}\\
\subfloat[]{\label{cc}\includegraphics{c.jpg}}
\subfloat[]{\label{dd}\includegraphics{d.jpg}}\\
\caption{Subfloat test: \subref{aa} subplot a \subref{bb} subplot b \subref{
cc} subplot c \subref{dd} subplot d.}
\label{fig:test}
\end{figure}
f****e
发帖数: 15
7
来自主题: Computation版 - matlab help
要画两个图,我用了subplot function.
可是不知道怎样分别!!
给两个subplots加上标题,坐标名称。以下是我的code,但不work.

subplot(2,1,1) ;
title('title 1','fontsize',12);
xlabel('x 1');
ylabel('y 1');
plot(y,x);
grid on;

subplot(2,1,2) ;
title('title 2','fontsize',12)
xlabel('x 2');
ylabel('y 2');
plot(y,x) ;
grid on;
f*******a
发帖数: 663
8
来自主题: DataSciences版 - Science上新clustering算法的分析测试
开始忘贴代码了,有朋友要求,就把修改后的代码贴在这里。改动不多,可以部分提升
效率。原来的也没删,注释掉了。供参考。
=========================================================================
clear;
close all
disp('The only input needed is a distance matrix file')
disp('The format of this file should be: ')
disp('Column 1: id of element i')
disp('Column 2: id of element j')
disp('Column 3: dist(i,j)')
if(0)
% mdist=input('name of the distance matrix file (with single quotes)?\n'
);
mdist = 'example_distances.dat';

disp('Reading input dis... 阅读全帖
f****e
发帖数: 15
9
来自主题: Unix版 - help, matlab plot
要画两个图,我用了subplot function,但就是不知道怎样分别给两个图
加标题和坐标名称
我用的是
subplot(2,1,1)
title('title 1')
xlabel('x1')
ylabel('y1')
plot(y,x)
subplot(2,1,2)
tot;e('title2')
xlabel('x2')
ylabel('y2')
plot(y,x)
etc
d*****l
发帖数: 8441
10
来自主题: EE版 - Re: matlab作图问题
1. Use subplot(121), plot(....) to plot one sub-figure (A);
2. Use subplot(122), plot(...) to plot another sub-figure (B);
3. Cut subfigure A and paste it back so that you can move it using mouse
manually. Then move its position as you wanted.
4. Do the same thing to sub-figure B.
5. Produce sub-figure (C) (subplot(121), plot(....) in another figure);
then cut it and paste it to the first figure;
6. Adjust the positions of sub-figures A B C to remove the gap between them.
Don't know the answe
m******t
发帖数: 273
11
【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: solve integral eq. embeeded with another integral eq.
发信站: BBS 未名空间站 (Sun Mar 23 14:20:18 2014, 美东)
I need to solve an integral equation embedded with another integral equation
by python 3.2 in win7.
There are 2 integral equations.
The code is here:
import numpy as np
from scipy.optimize.minpack import fsolve
from numpy import exp
from scipy.integrate.quadpack import quad
import matplotlib.pyplot as plt
impor... 阅读全帖
y****h
发帖数: 166
12
use 'axis()' for each subplot.
20 subplot, man, you got to have a big screen. :)
f**d
发帖数: 768
13
来自主题: Computation版 - matlab help
subplot(2,1,1);
plot(y,x);
title('title 1','fontsize',12);
xlabel('x 1');
ylabel('y 1');
grid on;
subplot(2,1,2) ;
plot(y,x) ;
title('title 2','fontsize',12)
xlabel('x 2');
ylabel('y 2');
grid on;
m**i
发帖数: 724
14
来自主题: Computation版 - matlab 问题
一个figure里有四个subplot,怎么才能给整个figure加个说明。而不是加在某个subplot
里。
m******t
发帖数: 273
15
【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: solve integral eq. embeeded with another integral eq.
发信站: BBS 未名空间站 (Sun Mar 23 14:20:18 2014, 美东)
I need to solve an integral equation embedded with another integral equation
by python 3.2 in win7.
There are 2 integral equations.
The code is here:
import numpy as np
from scipy.optimize.minpack import fsolve
from numpy import exp
from scipy.integrate.quadpack import quad
import matplotlib.pyplot as plt
impor... 阅读全帖
m******t
发帖数: 273
16
I need to solve an integral equation embedded with another integral equation
by python 3.2 in win7.
There are 2 integral equations.
The code is here:
import numpy as np
from scipy.optimize.minpack import fsolve
from numpy import exp
from scipy.integrate.quadpack import quad
import matplotlib.pyplot as plt
import sympy as syp
lb = 0
def integrand2(x, a):
print("integrand2 called")
return x**(a-1) * exp(-x)
def integrand1(x, b, c):
print(... 阅读全帖
j*****e
发帖数: 182
17
来自主题: Statistics版 - [合集] 这算什么DESIGN
This is a split-plot design. The whole-plot treatment is the four treatments
. It is assigned to the wholeplot unit (four blood samples from a person
under the same treatment) in a RCBD, where person is the blocking factor.
The subplot unit is each single blood sample. The subplot treatment is time.
You have to manipulate the data to a certain structure so that SAS PROC
MIXED can analyze this. Remember: design with repeated measurement is a
special case of split-plot design.
I am shocked that af
m******t
发帖数: 273
18
【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: solve integral eq. embeeded with another integral eq.
发信站: BBS 未名空间站 (Sun Mar 23 14:20:18 2014, 美东)
I need to solve an integral equation embedded with another integral equation
by python 3.2 in win7.
There are 2 integral equations.
The code is here:
import numpy as np
from scipy.optimize.minpack import fsolve
from numpy import exp
from scipy.integrate.quadpack import quad
import matplotlib.pyplot as plt
impor... 阅读全帖
l*********1
发帖数: 2971
19
拿死30万人的人间惨剧做背景,硬加入原作没有的浪曼外F戏,影评一般偏差. 老谋
子拿小金人得拍菊花戏才行
The Flowers of War **
by Andrew Schenker on December 18, 2011 Jump to Comments (0) or Add Your
Own
----------------------------------------------------------------------------
----
Buy on Amazon:
Book
Are the lives and bodies of a dozen virginal 13-year-old girls worth the
same as the lives and bodies of the equivalent number of prostitutes? That's
the moral dilemma at the heart of Zhang Yimou's The Flowers of War, the
celebrated filmmaker's... 阅读全帖
r**********g
发帖数: 22734
20
来自主题: Military版 - 普京放大杀器了
Fugitive and whistleblower Edward Snowden to speak from Russia at SXSW
http://www.cnn.com/2014/03/04/us/sxsw-edward-snowden-speaker/in
Austin, Texas (CNN) -- Even though he can't set foot in the United States
for fear of arrest, fugitive National Security Agency whistleblower Edward
Snowden has joined the speakers' roster at this year's South by Southwest
Interactive Festival.
Snowden, who fled the United States in June with thousands of top-secret
documents, will appear via teleconference Monda... 阅读全帖
U*E
发帖数: 3620
21
来自主题: Salon版 - 普京放大杀器了
Fugitive and whistleblower Edward Snowden to speak from Russia at SXSW
http://www.cnn.com/2014/03/04/us/sxsw-edward-snowden-speaker/in
Austin, Texas (CNN) -- Even though he can't set foot in the United States
for fear of arrest, fugitive National Security Agency whistleblower Edward
Snowden has joined the speakers' roster at this year's South by Southwest
Interactive Festival.
Snowden, who fled the United States in June with thousands of top-secret
documents, will appear via teleconference Monda... 阅读全帖
S*****n
发帖数: 692
22
来自主题: USANews版 - 媒体太无耻了
看看google news里这些头条:
Trump urges Russia to hack Clinton's emails - Washington Post
Donald Trump Calls on Russia to Find Hillary Clinton's Missing Emails - New
York Times
As Democrats Gather, a Russian Subplot Raises Intrigue - New York Times
Russia not the first to mess with our politics - CNN
Democratic convention live: Donald Trump calls on Russia to hack Hillary
Clinton's emailsThe Guardian
老床啊老床,真的是太得意了吗。。。

发帖数: 1
23
import ystockquote
from pprint import pprint
import sys
from numpy import *
import matplotlib.pyplot as plt
import datetime
#print name,':', ystockquote.get_price(name)
#pprint(ystockquote.get_historical_prices('GOOG', '2013-01-03', '2013-01-08'
))
#print ystockquote.get_historical_prices('GOOG', '2013-01-03', '2013-01-08')
['2013-01-04']['Open']
#pprint(ystockquote.get_all(name))
#ystockquote.urlopen('http://www.google.com/finance/getprices?i=60&p=10d&f=d,o,h,l,c,v&df=cpct&q=IBM')
#print ystock... 阅读全帖
e***t
发帖数: 14386
24
来自主题: Basketball版 - 靠GQ都出动了
During his brief but wondrous stretch of national superstardom, Jeremy Lin h
as given us only glimpses of himself, through his on-court conduct and humbl
e postgame comments. Naturally, we want to know more. Hurried by the potenti
ally short-lived apex of Linsanity, GQ contacted old friends, guys he'd stud
ied, played, and lived with, to get the truth about the 23-year-old Harvard
grad-turned-Knicks savior during his formative years. The result? Jeremy Lin
is, by most accounts, a spotless athlet... 阅读全帖
v*r
发帖数: 4532
25
来自主题: Basketball版 - bill simmons评价欧文
http://grantland.com/the-triangle/nba-trade-value-sneak-peek-no
My defense: I didn’t feel right about rewarding a shooting guard trapped in
a point guard’s body, someone ill equipped to execute the traditional “
make teammates better and take over when it matters” recipe. I call those
players “0-guards.” In some cases (a.k.a. Russell Westbrook), they’re so
good that it doesn’t matter. In other cases (Tyreke Evans, Steve Francis),
it does matter. Kyrie’s five-year, $90 million extension wasn’t he... 阅读全帖
r*********e
发帖数: 29495
26
来自主题: Soccer版 - 关注Gabriel Heinze v Patrice Evra
There is an intriguing subplot between these two as Evra took Heinze's spot
in the United first XI when he arrived in England for £5 million five years
ago. Now, after Heinze's fallout with Sir Alex Ferguson and, via Real Madri
d, the Argentine has landed in France and the battle on both side's left fla
nk will be under the microscope. Clearly, Evra has the edge in both youth an
d pace, but could be distracted by the French fans' reaction to his first ga
me back in France since the debacle of th... 阅读全帖
i*********r
发帖数: 5101
27
What Fish Needs to Do Against Nadal
By GEOFF MACDONALD
Mardy Fish has never beaten Rafael Nadal, and will have to play the match of
his life to win on Wednesday. He has to formulate a shrewd game plan,
matching his strengths against Nadal’s one or two less than stellar
tendencies, then quickly recalibrate when Nadal makes a subtle adjustment.
For, more than any top player, Nadal taxes you mentally as well as
physically. He not only exhausts his opponents by running them coast to
coast, but also ... 阅读全帖
l******u
发帖数: 2314
28
来自主题: CouchPotato版 - Fox's "Dollhouse" is interesting
OK, it's a little cheesy, a little erotic (in a good way), but overall
intriguing and interesting. Like "Fringe", independent stories with a
subplot connection.
3 episodes have been aired so far.
T**********h
发帖数: 160
29
来自主题: CouchPotato版 - 今晚的homeland
一大堆subplot which no one cares
这一集太对不起观众了,谁mb的关心carrie一个从来没有出现过的老娘和弟弟
k***r
发帖数: 13724
30
【 以下文字转载自 A_Song_of_Ice_and_Fire 俱乐部 】
发信人: kejer (kejer), 信区: A_Song_of_Ice_and_Fire
标 题: 马丁被愤怒book reader给逼急了
发信站: BBS 未名空间站 (Mon May 18 10:51:02 2015, 美东)
在blog上回应了,看了就是认了。
The Show, the Books
May. 18th, 2015 at 12:55 AM
I am getting a flood of emails and off-topic comments on this blog about
tonight's episode of GAME OF THRONES. It's not unanticipated.
The comments... regardless of tone... have been deleted. I have been saying
since season one that this is not the place to debate or dis... 阅读全帖
G*D
发帖数: 199
31
来自主题: LeisureTime版 - 纽约之影
具体安排我也不太清楚,她也没仔细跟我说,但应该是这个:
http://www.metmuseum.org/about-the-museum/press-room/news/2012/
The Peony Pavilion, Version by Tan Dun and Huang Doudou
Performed by Zhang Jun and the Shanghai Zhang Jun Art Center Company
Performances in The Astor Court:
Friday, November 30, 2012, at 7:00 p.m.
Saturday, December 1, 2012, at 2:00 and 7:00 p.m.
Sunday, December 2, 2012, at noon and 3:00 p.m.
Conversation with Tan Dun and Maxwell K. Hearn:
Thursday, November 29, 2012, at 6:00 p.m., in the Grace Rainey R... 阅读全帖
c*****r
发帖数: 2866
32
来自主题: Movie版 - 终于看了大地震
The main storyline is weak, not matter how many subplots you add. Somehow
the original novel itself determines any movie out of it will be hard to
impress.
I only wished that they could make the main characters more ordinary like
the ones in "To Live". It might be more touching. But that would be a too
far deviation from a typical Feng, wouldn't it?
h******n
发帖数: 202
33
来自主题: Movie版 - 我觉得war horse还不错
在IMDB看了一篇这个电影的review,把我笑翻了。转载一下:
I'm genuinely sorry I can't recommend or like this one, 26 December 2011
2/10
Author: LilyDaleLady from Anywheresville, USA
*** This review may contain spoilers ***
For the record, I'm a sappy horse lover, & I desperately wanted to like, nay
love, this film but I have to give it two stars.
Based on a children's novel by Michael Morpurgo, I never heard of "War Horse
" until the Broadway production. Magnificent life-size horse puppets were so
eerily realistic and m... 阅读全帖
b******n
发帖数: 4559
34
来自主题: Movie版 - 最强奥斯卡是1994年吧
Yes, it lacked originality and included many story elements from films
before its time, including the Great Escape.
From: http://thefilmspectrum.com/?p=663
Third, the film lacks originality in some of its story elements. Andy is but
a recycled version of Paul Newman in Cool Hand Luke (1967) or Jack
Nicholson in One Flew Over the Cuckoo’s Nest (1975); his time in the hole a
knock-off of Alec Guiness in The Bridge on the River Kwai (1957) and Steve
McQueen in The Great Escape (1963); his pockets-f... 阅读全帖
c**i
发帖数: 6973
35
来自主题: Literature版 - The Corpse Walker
(1) Steven Erlanger and Jonathan Ansfield, UNEASY ENGAGEMENT [/] Exporting
Censorship: At Book Fair, a Subplot About Chinese Rights. New York Times,
Oct. 19, 2009 (title as appears in the print)
http://www.nytimes.com/2009/10/19/world/asia/19books.html?_r=1&scp=1&sq=china%20frankfurt&st=cse
("a country still deeply uncomfortable with its own discordant voices, yet
eager to become more competitive with the West in the realm of ideas")
Note:
(a) Liao Yiwu/The Corpse Walker 廖亦武/赶尸者
(b) The adjectiv
s***k
发帖数: 25
36
how could the hero die hehe? he is the dragon reborn. tho in book 9
it does show a hint of him killed by a woman and revive again in the future
i guess he was talking about just it drags on and on with little story
and all the subplot seems out of his control, i somehow think 7 is the worst
highly recommend the 3rd one
a****g
发帖数: 6
37
来自主题: CS版 - 急问: 关于Matlab的问题
1. 用plot画线, 如何能够让线的颜色是渐变的? 例如从起点到终点的颜色是从蓝到红.
2. 用subplot在同一个图中画出两个立体三位三维图, 如何使一个图用鼠标任意rotate的
时候,第二个图也能rotate到相应视角.
不胜感激!!!
d****e
发帖数: 251
38
来自主题: Linux版 - 请教gnuplot高手
如果我理解对了,这个问题我碰到过。好像gnuplot不可能忽略x-axis的scale,
我的做法是画了两个subplots拼在一起,中间有个省略符号链接起来。很多杂志上面
的图都是这种画法。我不记得我是用gnuplot还是grace画的了。
l*****i
发帖数: 3929
39
来自主题: Programming版 - help for Matlab figures
use subplot in your code
x********3
发帖数: 566
40
来自主题: Programming版 - Matlab中时间作为坐标轴的设置
谢谢kkff,经过尝试,我发现使用datestick似乎可以解决这个问题,目前可以画出图
来,并在x轴显示出两个坐标, 分别是第一个x值,01-Jan-2002 00:00:00和最后一个
01-Jan-2004 00:00:00。可是我想在中间多显示几个时间,比如加上01-Jan-2003 00:
00:00刻度。请指点一下。谢谢。下面是我的程序。
subplot(2,2,i1);
plot(time_new(:),y(:,(j1-1)*2+i1+1));
set(gca,'ytick',[-4:1:3]);
set(gca,'yticklabel',{'-4.0','-3.0','-2.0','-1.0','0.0','1.0','2.0','3.0'});
set(gca,'xticklabel',{'01-Jan-2002 00:00:00','01-Jan-2003 00:00:00','01-Jan-
2003 00:00:00'});
datetick('x',0);
ylabel(['Node ', num2str((j1-1)*4+i1), ' Stage (ft)
w*s
发帖数: 7227
41
Ok i found this code online, works fine except i want to see date in the
xlabel.
import numpy as np
import pandas
import matplotlib.pyplot as plt
from matplotlib.finance import candlestick, candlestick2
import matplotlib.dates as mdates
from pandas.io.data import DataReader
import datetime
# get daily stock price data from yahoo finance for S&P500
start = datetime.datetime(2015, 11, 1)
end = datetime.datetime(2016, 2, 11)
SP = DataReader("spy", "yahoo", start, end)
SP.reset_index(inplace=True)... 阅读全帖
a*z
发帖数: 141
42
来自主题: Computation版 - [转载] matlab作图问题
【 以下文字转载自 EE 讨论区 】
【 原文由 ANZ 所发表 】
用subplot作1X3的图像,如何取消每个子图间的Gap?
另外,如何定义每个figure(非子图)的size?
谢谢
a*z
发帖数: 141
43
来自主题: Computation版 - [转载] Re: matlab作图问题
【 以下文字转载自 EE 讨论区 】
【 原文由 ANZ 所发表 】
不好意思,又有个新问题,
在subplot的三幅子图里,希望第一幅是彩图,第二三幅是灰度图,
怎么处理,因为在画第三幅后用colormap(gray),所有图都成了灰度图。
谢谢
t******d
发帖数: 376
44
来自主题: Computation版 - [转载] Re: matlab作图问题
after use subplot to generate the figure, you can change the figure as you
want if your Matlab version is greater than 6.0

灵活.
变大小
W*W
发帖数: 293
45
比如有4列图,但我想在所有的图上加一个总的title。
r****y
发帖数: 1437
46
gtext(), put it wherever you want, hehe.
W*W
发帖数: 293
47
thanks. gtext should work. i don't think title will work.
m*****r
发帖数: 3822
48
来自主题: Computation版 - matlab里subplot问题
都是surface的图,怎么公用一个colorbar
直接colorbar的话会画在一个子图的旁边
比如3x3个图,能把colorbar放在整个大图的右边吗?
r****y
发帖数: 1437
49
来自主题: Computation版 - matlab里subplot问题
As far as I know, matlab is very lame in such manipulation.
The way I did is first plot 3x3 graph, then plot one single contour
plus
colorbar. Then use photoshop to copy and paste that big colorbar to the
first
figure.
r****y
发帖数: 1437
50
来自主题: Computation版 - matlab里subplot问题
too time consuming comparing to mouse click in photoshop.
1 (共1页)