I don't know how can use tikpicture package to draw 2 figure below:

enter image description here

Please help me draw them. Thank you so much.

closed as off-topic by Marco Daniel, Werner, Peter Jansson, Ludovic C., Thorsten Nov 11 '13 at 17:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Marco Daniel, Werner, Peter Jansson, Ludovic C., Thorsten
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Maybe you can share your first attempt so we can suggest how to make it work – Bordaigorl Nov 11 '13 at 16:34
  • 3
    You may want to check the policy on "how do I draw this?" questions at the meta site. – masu Nov 11 '13 at 16:44
  • 1
    Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – jubobs Nov 11 '13 at 16:50

The following should get you started.



\foreach \nn in {1,2,3,...,20}{
\node[draw,fill=red,minimum width=0.5em,minimum height=1.5em,inner sep=0] (n\nn) at ($(0.6*\nn,0)$){};
\node[fit=(n1) (n4),draw](input){};
\draw [decorate,decoration={brace,amplitude=10pt},xshift=-4pt,yshift=0pt](input.north west) -- (input.north east) node [black,midway,above=1em] {NN Input};
\draw (output.north) --++(0,10pt)node[above=1em]{NN Output};


enter image description here

  • 4
    Can {1,2,3,...,20} be simplified? – kiss my armpit Nov 11 '13 at 17:04
  • How can create second line and three line with text header (on left corner)? How can add arrow point to box and vertical dot? Please help me more – phuong Nov 11 '13 at 19:28
  • @phuong maybe you should have some look into the very comprehensive TikZ manual. – Benedikt Bauer Nov 11 '13 at 19:31
  • @ Benedikt Bauer: I have read it, but i'm a newbie. I really don't know clearly about tikz. I want to learn by example. – phuong Nov 12 '13 at 1:47
  • @ all: Please help me solve this problem completely. Thank you very much – phuong Nov 12 '13 at 1:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.