How do I change x and y axes in matplotlib?
<p>I am using matplotlib to draw neuralnet. I found a code that draws neural net, but it is oriented from top to bottom. I would like to change the orientation from left to right. So basically I would like to change x and y axes after I already plotted all the shapes. Is there an easy way to do this?
I also found an answer that said that you can change parameter "orientation" to horizontal (code below) but I don't really understand where in my code should I copy that. would that give me the same result?</p>

<pre><code>matplotlib.pyplot.hist(x, 
                   bins=10, 
                   range=None, 
                   normed=False, 
                   weights=None, 
                   cumulative=False, 
                   bottom=None, 
                   histtype=u'bar', 
                   align=u'mid', 
                   orientation=u'vertical', 
                   rwidth=None, 
                   log=False, 
                   color=None, 
                   label=None, 
                   stacked=False, 
                   hold=None, 
                   **kwargs)
</code></pre>