brokenaxes AttributeError: 'SubplotSpec' object has no attribute 'is_last_row'

Advertisements I am trying to use the python brokenaxes to break both x and y axis. I run the code suggested here https://www.codespeedy.com/create-a-plot-with-broken-axis-in-python-using-matplotlib/ import matplotlib.pyplot as plt from brokenaxes import brokenaxes import numpy as np fig = plt.figure(figsize=(6,4)) baxes = brokenaxes(xlims=((-2,3),(5,8)), ylims=((0,8),(9.5,21)), hspace=.1) X = np.array([3,-1,0,4,5,-2,7]) Y = x**2 Z = x**3 baxes.plot(X,Y,label="squared") baxes.plot(X,Z,label="cubed") baxes.legend(loc="best")… Read More brokenaxes AttributeError: 'SubplotSpec' object has no attribute 'is_last_row'

Simple group bar chart with dual axis issue

Advertisements I have the following data frame: structure(list(Article = c("Compaq Presario 100", "IBM 500", "AST Intel 150", "AST Intel 200", "Compaq Presario 100", "AST Intel 150", "AST Intel 200", "IBM 500", "Compaq Presario 100", "IBM 500", "AST Intel 200", "Compaq Presario 100", "IBM 500", "AST Intel 150", "Compaq Presario 100", "AST Intel 200", "Compaq Presario… Read More Simple group bar chart with dual axis issue

Why the scatter plot is plotting zero data points when the data has no zero values

Advertisements I want to plot a scatter plot between ambienttemp and lightintensity. Based on the distribution for light intensity, there is no zero values, the min value is 10. enter image description here But my scatter plot is plotting zero or values less than zero enter image description here Here is my code xs =… Read More Why the scatter plot is plotting zero data points when the data has no zero values