'Brick wall with matplotlib
I'm working on a program about a soliton going through a barrier and I'm trying to make the barrier look like a real one, so to say, to be made of bricks. The problem is that I couldn't found how to plot the 'brick' texture. I use fill_between() but if there's another option that admits bricks, I wouldn't have problem with using it.
My code is:
gs=GridSpec(8,1) #7 rows and 1 column
state=self.fig.add_subplot(gs[2:,:])
light=self.fig.add_subplot(gs[0:2,:])
state.set_xlabel("Position ($x/ \\xi$)")
state.set_ylabel("Density $|\psi|^2 \\xi$")
state.plot(posit,phi2)
state.fill_between(posit,phi2,0,facecolor='0.80')
potential=state.twinx()
potential.plot(posit,pote,'g')
with all the arrays well defined and so. There's no problem with the code when running the program, but I would like to know how to draw the bricks if that's possible.
I attach an image of the actual situation, the barrier is empty for the moment waiting to be built with bricks, to make it more visual.

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
