如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
头像
microdust
帖子: 164
注册时间: 2007-05-24 17:04

如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#1

帖子 microdust » 2010-06-06 17:20

因为工作原因,需要画这么一张图
信号流图.png
这张图我是用 visio 画的,再加上 Mathtype,画起来比较简单,但完全达到了我要的效果。之前我用 dia 和 OpenOffice 都试了,都达不到这种效果,不得已才用 visio。
想请教大家的是: 如果不用 visio,大家用 Ubuntu 下的什么软件能画出这样比较精确的图?
是不是 LaTeX + Metapost? 如果是的话,请贴张类似的图上来让我们学习下 ,也好坚定我辈学习 LaTeX 的信心 :em04

ps: 提出这个问题,主要是想把 Ubuntu 真正和工作结合起来,而不仅仅拿来玩玩。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#2

帖子 eexpress » 2010-06-06 20:56

diagram估计自动生成这样的,都可以。
● 鸣学
头像
zhcj
帖子: 363
注册时间: 2008-09-06 5:11
来自: 石家庄
联系:

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#3

帖子 zhcj » 2010-06-06 21:28

强烈推荐永中的科教之星!里面有几何作图,完全可以画出这样的图形。 只不过现在还是测试版,但功能一点不差!
注:现在永中正在建设新网站,可能无法访问,过段时间就可以了。
http://phpcj.org/
河北Linux用户组QQ群:249872047
Gentoo中文社区QQ群:160294591
thorne
帖子: 660
注册时间: 2008-10-08 22:01

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#4

帖子 thorne » 2010-06-07 15:50

asympote

代码: 全选

其实我是个Debian GNU/Linux用户
Octave script :http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=254511
Octave中文:http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=318969
gd88121
帖子: 109
注册时间: 2007-11-28 2:19

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#5

帖子 gd88121 » 2010-06-08 11:07

可以用LaTeX + TiKz

这里有些tikz的例子,LZ可以翻翻看,或者它500多页的手册里也有很多例子。
http://www.texample.net/tikz/examples/all/?page=1
头像
shinery
帖子: 1378
注册时间: 2009-07-22 22:23

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#6

帖子 shinery » 2010-06-08 17:38

:em11
愿扣上你双手,至繁华浪处到沙丘。
arinya
帖子: 82
注册时间: 2010-05-17 12:42

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#7

帖子 arinya » 2010-06-08 19:11

除了那个指示箭头位于中间,我没有觉得openoffice 和dia不能画这个图
头像
jioyo源
帖子: 3476
注册时间: 2008-10-08 13:48

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#8

帖子 jioyo源 » 2010-06-08 21:01

gnuplot
--------------------------------------
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286
头像
橘洲林风
帖子: 3
注册时间: 2011-10-27 15:18

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#9

帖子 橘洲林风 » 2012-01-03 20:29

microdust, 请问VISIO中怎么画你那个图呢?哪里有中间带箭头的曲线? :em06
tomguy
帖子: 702
注册时间: 2005-09-27 10:32

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#11

帖子 tomguy » 2012-01-04 23:57

gd88121 写了:可以用LaTeX + TiKz

这里有些tikz的例子,LZ可以翻翻看,或者它500多页的手册里也有很多例子。
http://www.texample.net/tikz/examples/all/?page=1

支持!这个软件很好用。不过需要学一下。


楼主还可以看一下Xfig,也是个不错的东西。这软件学习成本稍低。
头像
leni
帖子: 1989
注册时间: 2008-09-28 17:24

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#12

帖子 leni » 2012-01-05 2:35

我第一个想到的也是latex+tikz宏包,因为它在PDF里生成的图片确实很干净俐落,清晰漂亮。不过tikz学起来像latex一样费时,这么一个图,起码tikz学个两天依然作不了,那个tikz样例网站上我也没有找到可供lz直接参考的例子。如果是我,我估计还是用openoffice去作了。
latex 是个命令集,不是软件,所以在应用程序里找不到,也不存在启动。使用的话,自己写个 .tex 的文件,用 latex 编译。viewtopic.php?f=35&t=331555 的 4楼 有入门教程PDF下载。
头像
yinliang108
帖子: 964
注册时间: 2005-10-01 21:38
来自: 湖南邵东流光岭

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#13

帖子 yinliang108 » 2012-01-05 10:45

jioyo源 写了:gnuplot
gnuplot不要用箭头吧?
小江恩的博客
http://gann.blog.ifeng.com/
头像
tangboyun
帖子: 701
注册时间: 2009-07-25 1:57
联系:

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#14

帖子 tangboyun » 2012-01-05 22:40

lz这个图比较简单,直接用裸的cairo api都能画出来,就是要算坐标。。。。
tikz学起来其实不难,麻烦的地方在于有时候也要算坐标,那就蛋疼了.
R->Tikz: http://cran.r-project.org/web/packages/ ... index.html
Matlab Fig -> PDF: http://www.mathworks.com/matlabcentral/ ... -exportfig
这样导出好处是生成的都是矢量而非位图。
[latex]
%%% normalDistr.tex ---
%% Version: $Id: normalDistr.tex,v 0.0 2012/01/05 14:35:11 tangboyun Exp$
%% Copyright : (c) 2012 Boyun Tang
%% License : BSD-style
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,shadows,shapes.arrows,shapes.geometric,shapes.misc,matrix,arrows,positioning,calc,decorations.pathreplacing}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{verbatim}
\begin{document}
\begin{tikzpicture}[domain=0:3.5,scale=1.5,samples=500]
\draw[very thin,color=gray!30,step=0.1] (-0.1,-0.1) grid (3.5,1.7);
\draw[->] (-0.2,0) -- (3.5,0) node[right,font=\small] {$\mathit{x}$};
\draw[->] (0,-0.2) -- (0,1.7) node[above,font=\small] {$\mathit{p(x)}$};
\draw
plot (\x,{1 / (2.486*0.3) * exp(-0.5*((\x - 1)/0.3) * ((\x - 1)/0.3))});
\draw[very thin,color=blue,loosely dashed] (1,-0.2) -- (1,1.7);
\draw[very thin,color=red,loosely dashed] (2.2,-0.2) -- (2.2,1.7);
\draw
plot (\x,{1 /(0.35 * 2.486) * exp(-0.5*((\x - 2.2) /0.35) * ((\x - 2.2) / 0.35))});

\foreach \x/\xtext in {0.5,1,1.5,2.0,2.5,3.0}
\draw (\x, 1pt) -- (\x, -1pt) node [anchor=north,font=\tiny] {$\xtext$};
\foreach \y/\ytext in {0.5,1,1.5}
\draw (1pt,\y) -- (-1pt,\y) node [anchor=east,font=\tiny] {$\ytext$};
\draw (1.75,1.7) node [anchor=south,font=\tiny] {\(
p(x)=\frac{1}{\sqrt{2\mathrm{\pi}}\sigma}
\mathrm{e}^{-\frac{1}{2}(\frac{x-\mu}{\sigma})^2}
\)};
\draw (2.25,1.5) node [anchor=south west,color=blue,font=\tiny] {\(
\mu_1 = 1,\sigma_1 = 0.3\)};
\draw (2.25,1.37) node [anchor=south west,color=red,font=\tiny] {\(
\mu_2 = 2.2,\sigma_2 = 0.35\)};
\end{tikzpicture}
\end{document}
[/latex]

[latex]
%%% nonlinerSVM.tex ---
%% Version: $Id: test.tex,v 0.0 2012/01/05 14:21:36 tangboyun Exp$
%% Copyright : (c) 2012 Boyun Tang
%% License : BSD-style
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,shadows,shapes.arrows,shapes.geometric,shapes.misc,matrix,arrows,positioning,calc,decorations.pathreplacing}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{verbatim}
\begin{document}
\begin{tikzpicture}[
a/.style={ball color=blue,circle},
b/.style={ball color=red,circle},
]
\draw (8,1) node {};
\draw (9,2) node {};
\draw (12,2.2) node {};
\draw (9.2,0.5) node {};
\draw (10.3,0.8) node {};
\filldraw[draw=green!40,fill=green!40,fill opacity=0.8] (7,1) -- (9,3.5) -- (13,4)
--(11,1.5)--cycle;
\draw [dashed] (7,0) -- (9,1.5) -- (13,1.5);
\draw [dashed] (9,5.5) -- (9,1.5);
\draw (7.5,1.5) node [a] {};
\draw (9.2,3.5) node [a] (f1) {};
\draw (12,4.3) node [a] {};
\draw (10.5,3) node [a] {};
\draw (8.8,2.5) node [a] {};
\draw[thick] (0,0) -- (2,2) -- (6,2) -- (4,0) -- (0,0);
\draw[thick] (7,4) -- (9,5.5) -- (13,5.5) -- (11,4) -- (7,4) -- (7,0) -- (11,0) -- (11,4);
\draw[thick] (11,0) -- (13,1.5) -- (13,5.5);


\draw (1,0.5) node [a] {};
\draw (1.8,0.25) node {};
\draw (2.2,1.75) node [a] (a1) {};
\draw (2.3,1) node {};
\draw (3,1.2) node [a] {};
\draw (2.7,0.35) node {};
\draw (4,1.6) node [a] {};
\draw (3.5,0.6) node {};
\draw (4.5,0.9) node {};
\draw (5,1.5) node [a] {};
\draw [thick,green!70,rounded corners] (1.2,0) -- (1.4,0.38) -- (2.25,1.38) -- (2.85,0.78) -- (3.8,1.1) -- (4.75,1.2) -- (5,1);
\draw (a1)
edge [->,very thick,bend left] node [midway,above,font=\huge] {$\boldsymbol{\phi}$}
(f1);
\draw (3,-0.5) node [font=\Large,yshift=-5pt]{\textbf{Input Space}};
\draw (10,-0.5) node[font=\Large,yshift=-5pt] {\textbf{Feature Space}};
\end{tikzpicture}
\end{document}
[/latex]
nonlinerSVM.pdf
(20.39 KiB) 已下载 48 次
normalDistr.pdf
(48 KiB) 已下载 46 次
上次由 tangboyun 在 2012-01-06 1:35,总共编辑 1 次。
https://github.com/tangboyun
http://tangboyun.is-programmer.com/
提问的智慧————Eric Steven Raymond
回答的智慧————Andrew Clarke
吾尝终日而思矣,不如须臾之所学也;吾尝跂而望矣,不如登高之博见也。
急急急标题什么的,最讨厌了!
急急复急急,急急何其多,我生待急急,万事急急急。
头像
photor
论坛版主
帖子: 11004
注册时间: 2008-04-26 12:41

Re: 如果不用 visio 请教大家用 Ubuntu 下的什么软件能画出这样的图?

#15

帖子 photor » 2012-01-05 22:51

tangboyun 写了:lz这个图比较简单,直接用裸的cairo api都能画出来,就是要算坐标。。。。
tikz学起来其实不难,麻烦的地方在于有时候也要算坐标,那就蛋疼了.
[latex]
%%% normalDistr.tex ---
%% Version: $Id: normalDistr.tex,v 0.0 2012/01/05 14:35:11 tangboyun Exp$
%% Copyright : (c) 2012 Boyun Tang
%% License : BSD-style
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,shadows,shapes.arrows,shapes.geometric,shapes.misc,matrix,arrows,positioning,calc,decorations.pathreplacing}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{verbatim}
\begin{document}
\begin{tikzpicture}[domain=0:3.5,scale=1.5,samples=500]
\draw[very thin,color=gray!30,step=0.1] (-0.1,-0.1) grid (3.5,1.7);
\draw[->] (-0.2,0) -- (3.5,0) node[right,font=\small] {$\mathit{x}$};
\draw[->] (0,-0.2) -- (0,1.7) node[above,font=\small] {$\mathit{p(x)}$};
\draw
plot (\x,{1 / (2.486*0.3) * exp(-0.5*((\x - 1)/0.3) * ((\x - 1)/0.3))});
\draw[very thin,color=blue,loosely dashed] (1,-0.2) -- (1,1.7);
\draw[very thin,color=red,loosely dashed] (2.2,-0.2) -- (2.2,1.7);
\draw
plot (\x,{1 /(0.35 * 2.486) * exp(-0.5*((\x - 2.2) /0.35) * ((\x - 2.2) / 0.35))});

\foreach \x/\xtext in {0.5,1,1.5,2.0,2.5,3.0}
\draw (\x, 1pt) -- (\x, -1pt) node [anchor=north,font=\tiny] {$\xtext$};
\foreach \y/\ytext in {0.5,1,1.5}
\draw (1pt,\y) -- (-1pt,\y) node [anchor=east,font=\tiny] {$\ytext$};
\draw (1.75,1.7) node [anchor=south,font=\tiny] {\(
p(x)=\frac{1}{\sqrt{2\mathrm{\pi}}\sigma}
\mathrm{e}^{-\frac{1}{2}(\frac{x-\mu}{\sigma})^2}
\)};
\draw (2.25,1.5) node [anchor=south west,color=blue,font=\tiny] {\(
\mu_1 = 1,\sigma_1 = 0.3\)};
\draw (2.25,1.37) node [anchor=south west,color=red,font=\tiny] {\(
\mu_2 = 2.2,\sigma_2 = 0.35\)};
\end{tikzpicture}
\end{document}
[/latex]

[latex]
%%% nonlinerSVM.tex ---
%% Version: $Id: test.tex,v 0.0 2012/01/05 14:21:36 tangboyun Exp$
%% Copyright : (c) 2012 Boyun Tang
%% License : BSD-style
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,shadows,shapes.arrows,shapes.geometric,shapes.misc,matrix,arrows,positioning,calc,decorations.pathreplacing}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{verbatim}
\begin{document}
\begin{tikzpicture}[
a/.style={ball color=blue,circle},
b/.style={ball color=red,circle},
]
\draw (8,1) node {};
\draw (9,2) node {};
\draw (12,2.2) node {};
\draw (9.2,0.5) node {};
\draw (10.3,0.8) node {};
\filldraw[draw=green!40,fill=green!40,fill opacity=0.8] (7,1) -- (9,3.5) -- (13,4)
--(11,1.5)--cycle;
\draw [dashed] (7,0) -- (9,1.5) -- (13,1.5);
\draw [dashed] (9,5.5) -- (9,1.5);
\draw (7.5,1.5) node [a] {};
\draw (9.2,3.5) node [a] (f1) {};
\draw (12,4.3) node [a] {};
\draw (10.5,3) node [a] {};
\draw (8.8,2.5) node [a] {};
\draw[thick] (0,0) -- (2,2) -- (6,2) -- (4,0) -- (0,0);
\draw[thick] (7,4) -- (9,5.5) -- (13,5.5) -- (11,4) -- (7,4) -- (7,0) -- (11,0) -- (11,4);
\draw[thick] (11,0) -- (13,1.5) -- (13,5.5);


\draw (1,0.5) node [a] {};
\draw (1.8,0.25) node {};
\draw (2.2,1.75) node [a] (a1) {};
\draw (2.3,1) node {};
\draw (3,1.2) node [a] {};
\draw (2.7,0.35) node {};
\draw (4,1.6) node [a] {};
\draw (3.5,0.6) node {};
\draw (4.5,0.9) node {};
\draw (5,1.5) node [a] {};
\draw [thick,green!70,rounded corners] (1.2,0) -- (1.4,0.38) -- (2.25,1.38) -- (2.85,0.78) -- (3.8,1.1) -- (4.75,1.2) -- (5,1);
\draw (a1)
edge [->,very thick,bend left] node [midway,above,font=\huge] {$\boldsymbol{\phi}$}
(f1);
\draw (3,-0.5) node [font=\Large,yshift=-5pt]{\textbf{Input Space}};
\draw (10,-0.5) node[font=\Large,yshift=-5pt] {\textbf{Feature Space}};
\end{tikzpicture}
\end{document}
[/latex]
nonlinerSVM.pdf
normalDistr.pdf
高手来了 :em09
回复