question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

I was wondering is it possible to add two scale bars: one for the x-axis and another one for the y-axis. The x-axis of my plot is in milliseconds and the y-axis in pico ampers.

I have generated the following plot but, I want the unit of the plot being “ms” which the program does not allow. I also want to add another scalebar for the y-axis, so that I can hide the axis.

scalebar = ScaleBar(1, label='ms', location='lower right')
plt.gca().add_artist(scalebar)

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ppinardcommented, Jan 1, 2021

I just merged some changes to allow a “vertical” scale bar. See help documentation: https://github.com/ppinard/matplotlib-scalebar#rotation. I will release a new version of matplotlib-scalebar to PyPI in the coming week.

0reactions
ppinardcommented, Jan 2, 2021

Now in release 0.7.0. Please close the issue if the solution works for you. Happy new year as well!

Read more comments on GitHub >

github_iconTop Results From Across the Web

X and Y set scale plugin - Image.sc Forum
I have an image on which the horizontal x coordinate represents space and the vertical y coordinate time. I would like to stamp...
Read more >
SPIP User's Guide - XY Scaling Tool
The purpose of the XY-Scaling tool is to provide an easy way to scale images from ... Instead SEM images may contain scale...
Read more >
Scale Bar
The Scale Bar tool draws a scale bar and associated label. ... settings is chosen, the bar is made parallel to the XY...
Read more >
Hide an axis and show scale bars - GraphPad
Hiding the X or Y axis. Or both. Prism lets you hide either the X- or the Y-axis and show scale bars instead....
Read more >
Adding scale bars to images using ImageJ - Kaplinsky Lab
Adding scale bars to images using ImageJ · 3) If you have an image with a calibration scale (ie a ruler or a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found