text: user15741: Is there a MATLAB, or else Python (not R) tool for visualizing sequence Logos from probability weight matrices (PWMs)?
  This seems like a basic and simple tool to implement, yet just above the threshold in the space of tedious to write my own from scratch - I was surprised I couldn't find a basic function like a
  visualizePWM(pwm_matrix) 
  
  that would take a pwm_matrix that is a (4 by m) matrix and spit out the visualization of an m-length sequence motif/logo like:
  
  I see all kinds of over-complicated bloated tools that I thought I ask in case I am missing something.
  
  user73: answer from @M__, converted from comments:
  This has been answered on stackoverflow using matplotlib for seq logo plot:
  https://stackoverflow.com/questions/42615527/sequence-logos-in-matplotlib-aligning-xticks
  IMO its only useful for presentation, pretty pictures, thus there's no need for someone to write a library (which is what you're asking). If I'm using a mutation matrix (which I do), I want the raw numbers and significance values I don't want pretty graphs getting in the way.
  Conceptually you would move from 2D to 1D, without subplots (which is doable), i.e. its a matrix. My view on code availability is not universal. I've had requests for separate CLIs (useful for someone clearly) ... which just never happened.
  
  user15741: After much searching and trial and error, located possibly the optimal tool for my question:
  seqlogo
  https://github.com/betteridiot/seqlogo
  Surprisingly not only seqlogo is an elegant and minimal solution in Python (and R) I have discovered it has a relative implementation in MATLAB! It installed and worked the first try - beautiful output with all the output options I needed - rock solid.
  Python one liner (not counting the example pwm input generation)
  random_ppm = np.random.dirichlet(np.ones(4), size=16)
  ppm = seqlogo.Ppm(random_ppm)
  seqlogo.seqlogo(ppm  ,format='png',filename='out.png')
  Produces the following ('out.png')
  
  And here is MATLAB Port:
  https://www.mathworks.com/help/bioinfo/ref/seqlogo.html
  
  
original_text: 15741: <p>Is there a MATLAB, or else Python (not R) tool for visualizing sequence Logos from probability weight matrices (PWMs)?</p>
  <p>This seems like a basic and simple tool to implement, yet just above the threshold in the space of tedious to write my own from scratch - I was surprised I couldn't find a basic function like a</p>
  <pre><code>visualizePWM(pwm_matrix) 
  </code></pre>
  <p>that would take a pwm_matrix that is a (4 by m) matrix and spit out the visualization of an m-length sequence motif/logo like:</p>
  <p><a href="https://i.stack.imgur.com/Uf9QO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uf9QO.png" alt="enter image description here" /></a></p>
  <p>I see all kinds of over-complicated bloated tools that I thought I ask in case I am missing something.</p>
   73: <p><em>answer from @M__, converted from <a href="https://bioinformatics.stackexchange.com/help/privileges/comment">comments</a>:</em></p>
  <p>This has been answered on stackoverflow using matplotlib for seq logo plot:</p>
  <p><a href="https://stackoverflow.com/questions/42615527/sequence-logos-in-matplotlib-aligning-xticks">https://stackoverflow.com/questions/42615527/sequence-logos-in-matplotlib-aligning-xticks</a></p>
  <p>IMO its only useful for presentation, pretty pictures, thus there's no need for someone to write a library (which is what you're asking). If I'm using a mutation matrix (which I do), I want the raw numbers and significance values I don't want pretty graphs getting in the way.</p>
  <p>Conceptually you would move from 2D to 1D, without subplots (which is doable), i.e. its a matrix. My view on code availability is not universal. I've had requests for separate CLIs (useful for someone clearly) ... which just never happened.</p>
   15741: <p>After much searching and trial and error, located possibly the optimal tool for my question:</p>
  <p><strong>seqlogo</strong></p>
  <p><a href="https://github.com/betteridiot/seqlogo" rel="nofollow noreferrer">https://github.com/betteridiot/seqlogo</a></p>
  <p>Surprisingly not only seqlogo is an elegant and minimal solution in Python (and R) I have discovered it has a relative implementation in MATLAB! It installed and worked the first try - beautiful output with all the output options I needed - rock solid.</p>
  <p><strong>Python</strong> one liner (not counting the example pwm input generation)</p>
  <p>random_ppm = np.random.dirichlet(np.ones(4), size=16)</p>
  <p>ppm = seqlogo.Ppm(random_ppm)</p>
  <p><strong>seqlogo.seqlogo(ppm  ,format='png',filename='out.png')</strong></p>
  <p>Produces the following ('out.png')</p>
  <p><a href="https://i.stack.imgur.com/hrIZJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hrIZJ.png" alt="enter image description here" /></a></p>
  <p>And here is <strong>MATLAB</strong> Port:</p>
  <p><a href="https://www.mathworks.com/help/bioinfo/ref/seqlogo.html" rel="nofollow noreferrer">https://www.mathworks.com/help/bioinfo/ref/seqlogo.html</a></p>
  <p><a href="https://i.stack.imgur.com/Weeh9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Weeh9.png" alt="enter image description here" /></a></p>
  