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.

Wrong axis scaling in .plot_image

See original GitHub issue

When I call .plot_image() on epochs data, the x axis (time) is correctly shown in seconds.

However, when I call .plot_image() on evoked data (=epochs.average()), the x axis (again, time) is incorrectly shown in milliseconds (although the values indicate seconds).

Having used some of the plotting functions, I have also realized that the labeling for the time axis is not always either in milliseconds or in seconds but rather this changes from function to function and apparently depending on the object that I call the function on (see above).

Apart from fixing the issue with evoked.plot_image(), maybe it would be better to use consistent labeling for the time axis? Or are there reasons that would speak against this consistency?

Pictures to show what I mean (the data is always the same): evoked.plot_image() --> time axis label should be “seconds” … or x_axis_values *= 1000 mneissue

epochs.plot_image() --> again, this is a correct example … working with an epochs instead of an evoked object mneissue3

evoked.plot_joint() --> another correct example, this time with an evoked object again. However why is it in milliseconds now? mneissue2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jona-sassenhagencommented, Mar 23, 2018

There is a PR for evoked.plot_image underway in #5010, I can also set it to s there?

1reaction
larsonercommented, Mar 22, 2018

And it looks like there is a bug in that image plot, too. Zero should be white (middle of colorbar).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove axis, legends, and white padding
It successfully removes the axis of the figure, but the figure saved, presents a white padding, and a frame around the actual image....
Read more >
ggcyto wrong axis scale?
Using autoplot the values for DAPI channel are depicted correctly. I have done a lot of reading the vignettes for ggcyto and flowWorkspace...
Read more >
plotimage.pro (Documentation for C ... - HIGP
PLOTIMAGE does not attempt to resample the image ; from linear scale to ... the image is not actually displayed, but ; coordinate...
Read more >
Density Plot axis scaling - Usage & Issues - Image.sc Forum
It seems to me that the density plot x-axis always sticks to the data of the first 'per_image' option: 'ImageNumber'.
Read more >
Project (beta) Burn up chart wrong axis scale #11078 - GitHub
Project (beta) Burn up chart wrong axis scale. ... Also, the axis doesn't seam right, would be great to be customizable.
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