hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Axis ratio of plot changes in dock (pandas - matplotlib)

Open IvanPalm opened this issue 4 years ago • 0 comments

Prerequisites

Description

Axis ratio of plots are distorted when displayed in dock, while they are properly displayed in-line. I cannot recall when the issue started, I believe it was a few days ago.

Steps to Reproduce

  1. import pandas and create data frame
  2. plot the data in dock
import pandas as pd

cars = {'Brand': ['Honda Civic', 'Toyota Corolla', 'Ford Focus', 'Audi A4'],
        'Price': [22000, 25000, 27000, 35000]
        }

df = pd.DataFrame(cars, columns=['Brand', 'Price'])

df.plot.bar()
  1. go to Hydrogen Settings, select 'View output int the dock by default'
  2. re-plot data with output in dock

Versions

OS version: Ubuntu 20.04 LTS

atom --version

Atom    : 1.51.0
Electron: 5.0.13
Chrome  : 73.0.3683.121
Node    : 12.0.0

apm --version

apm  2.5.0
npm  6.14.5
node 10.20.1 x64
atom 1.51.0
python 3.8.6
git 2.25.1

Hydrogen version: 2.14.7

Plugins

Have you installed and activated any of the Hydrogen plugins below ?

  • [ ] hydrogen-python
  • [ ] Hydrogen Launcher
  • [ ] Data Explorer

Logs

No error returned.

Expected behavior

Plots being displayed in dock as it is displayed in-line.

Screenshots

Screenshot from 2021-02-10 20-21-39 Screenshot from 2021-02-10 20-23-11

Additional context

None

IvanPalm avatar Feb 10 '21 19:02 IvanPalm