Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. documentclass[10pt,letterpaper,oneside]{article}
  2.  
  3. usepackage[dvips,top=1.2in,bottom=0.65in,left=1.0in,right=1.0in,includefoot]{geometry}
  4.  
  5. usepackage{pst-node,pstricks-add,pst-func}
  6. % set up float for putting figures where you want them
  7. usepackage{float}
  8.  
  9.  
  10. begin{document}
  11.  
  12. Using texttt{circle}:
  13.  
  14. begin{figure}[H]
  15. centering
  16. newpsstyle{Cempty}{fillstyle=solid,mnode=none}
  17. newpsstyle{Cfill}{fillstyle=solid,fillcolor=blue!7,shadow=false}
  18. rule[1.8cm]{0.0pt}{3.0cm}
  19. psscalebox{0.935}{
  20. $
  21. psmatrix[colsep=1cm,rowsep=1cm,
  22. arrowscale=1.5,mnode=circle]
  23. [style=Cempty] ~ & [name=N1,style=Cfill] phi_tp_t & [style=Cempty] ~\
  24. [name=N2,style=Cfill] phi_. p_t & [style=Cempty] ~ & [name=N3,style=Cfill] phi_t p_. \
  25. [style=Cempty] ~ & [name=N4,style=Cfill] phi_.{p_.} & [style=Cempty] ~
  26. % node connections
  27. psset{nodesep=5pt,arrows=->}
  28. ncline[linecolor=red,linewidth=.05cm]{N1}{N2}
  29. nbput*[nrot=0]{textbf{?}}
  30. ncline[linestyle=dashed]{N1}{N3}
  31. ncline[linestyle=dashed]{N1}{N4}
  32. ncline[linestyle=dashed]{N2}{N4}
  33. ncline[linecolor=red,linewidth=.05cm]{N3}{N4}
  34. naput*[nrot=0]{textbf{?}}
  35. endpsmatrix
  36. $
  37. }
  38. end{figure}
  39.  
  40.  
  41. Using texttt{Circle}, in order to control radius of the nodes:
  42.  
  43. begin{figure}[H]
  44. centering
  45. newpsstyle{Cempty}{fillstyle=solid,mnode=none}
  46. newpsstyle{Cfill}{fillstyle=solid,fillcolor=blue!7,shadow=false}
  47. rule[1.8cm]{0.0pt}{3.0cm}
  48. psscalebox{0.935}{
  49. $
  50. psmatrix[colsep=1cm,rowsep=1cm,
  51. arrowscale=1.5,mnode=Circle,radius=0.55cm]
  52. [style=Cempty] ~ & [name=N1,style=Cfill] phi_tp_t & [style=Cempty] ~\
  53. [name=N2,style=Cfill] phi_. p_t & [style=Cempty] ~ & [name=N3,style=Cfill] phi_t p_. \
  54. [style=Cempty] ~ & [name=N4,style=Cfill] phi_.{p_.} & [style=Cempty] ~
  55. % node connections
  56. psset{nodesep=5pt,arrows=->}
  57. ncline[linecolor=red,linewidth=.05cm]{N1}{N2}
  58. nbput*[nrot=0]{textbf{?}}
  59. ncline[linestyle=dashed]{N1}{N3}
  60. ncline[linestyle=dashed]{N1}{N4}
  61. ncline[linestyle=dashed]{N2}{N4}
  62. ncline[linecolor=red,linewidth=.05cm]{N3}{N4}
  63. naput*[nrot=0]{textbf{?}}
  64. endpsmatrix
  65. $
  66. }
  67. end{figure}
  68.  
  69.  
  70. end{document}
  71.  
  72. documentclass[10pt,letterpaper,oneside]{article}
  73.  
  74. usepackage[dvips,top=1.2in,bottom=0.65in,left=1.0in,right=1.0in,includefoot]{geometry}
  75.  
  76. usepackage{pstricks-add,pst-func,}
  77. % set up float for putting figures where you want them usepackage{float}
  78.  
  79. begin{document}
  80.  
  81. Using texttt{circle}:
  82.  
  83. begin{figure}[H]
  84. centering
  85. newpsstyle{Cempty}{fillstyle=solid,mnode=none}
  86. newpsstyle{Cfill}{fillstyle=solid,fillcolor=blue!7,shadow=false}
  87. rule[1.8cm]{0.0pt}{3.0cm}
  88. psscalebox{0.935}{
  89. $
  90. psmatrix[colsep=1cm,rowsep=1cm,
  91. arrowscale=1.5,mnode=circle, radius = 1cm]
  92. [style=Cempty] ~ & [name=N1,style=Cfill] phi_tp_t & [style=Cempty] ~\
  93. [name=N2,style=Cfill] phi_. p_t & [style=Cempty] ~ & [name=N3,style=Cfill] phi_t p_. \
  94. [style=Cempty] ~ & [name=N4,style=Cfill] phi_.{p_.} & [style=Cempty] ~
  95. % node connections
  96. psset{nodesep=5pt,arrows=->}
  97. ncline[linecolor=red,linewidth=.05cm]{N1}{N2}
  98. nbput*[nrot=0]{textbf{?}}
  99. ncline[linestyle=dashed]{N1}{N3}
  100. ncline[linestyle=dashed]{N1}{N4}
  101. ncline[linestyle=dashed]{N2}{N4}
  102. ncline[linecolor=red,linewidth=.05cm]{N3}{N4}
  103. naput*[nrot=0]{textbf{?}}
  104. endpsmatrix
  105. $
  106. }
  107. end{figure}
  108.  
  109.  
  110. Using texttt{Circle}, in order to control radius of the nodes:
  111.  
  112. begin{figure}[H]
  113. centering
  114. newpsstyle{Cempty}{fillstyle=solid,mnode=none}
  115. newpsstyle{Cfill}{fillstyle=solid,fillcolor=blue!7,shadow=false}
  116. rule[1.8cm]{0.0pt}{3.0cm}
  117. psscalebox{0.935}{
  118. $
  119. psmatrix[colsep=1cm,rowsep=1cm,
  120. arrowscale=1.5,mnode=Circle, radius=0.55cm]%,C
  121. [style=Cempty] ~ &[name=N1,style=Cfill]raisebox{depth}{$ phi_tp_t $} & [style=Cempty] ~\
  122. [name=N2,style=Cfill] raisebox{depth}{$ phi_. p_t $} & [style=Cempty] ~ & [name=N3,style=Cfill] raisebox{depth}{$ phi_t p_. $} \
  123. [style=Cempty] ~ & [name=N4,style=Cfill] raisebox{depth}{$ phi_.{p_.} $} & [style=Cempty] ~
  124. % node connections
  125. psset{nodesep=5pt,arrows=->}
  126. ncline[linecolor=red,linewidth=.05cm]{N1}{N2}
  127. nbput*[nrot=0]{textbf{?}}
  128. ncline[linestyle=dashed]{N1}{N3}
  129. ncline[linestyle=dashed]{N1}{N4}
  130. ncline[linestyle=dashed]{N2}{N4}
  131. ncline[linecolor=red,linewidth=.05cm]{N3}{N4}
  132. naput*[nrot=0]{textbf{?}}
  133. endpsmatrix
  134. $
  135. }
  136. end{figure}
  137.  
  138. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement