Issue I have an data on excel . enter image description here . I filtered some columns and rows from this excel file and wrote this code ; import numpy as np import pandas as pd import seaborn as sns
Continue readingTag: matplotlib
[SOLVED] How to make a program that will display a graph depending on number inputted in?
Issue So I want to create a program that will display a graph depending on the number placed in by the user, it will ask for the number of days, then depending on the number of days, it will ask
Continue reading[SOLVED] Speed up loop for matplotlib in python
Issue I have a similar, but larger data set with more dates and over ten thousand rows. Usually, it takes 3mins or longer to run the code and plot. I think the problem comes from loop. Looping is time-consuming in
Continue reading[SOLVED] How to add additional arguments to make matplotlib FuncFormatter() more flexible
Issue Simple Example How can I get the ‘$’ symbol on y-ticks (see red circle), but the ‘£’ symbol on x-ticks? Here’s my code so far: import numpy as np import matplotlib from matplotlib import pyplot as plt x =
Continue reading[SOLVED] How do I change the "str" labels in a function to "int" and return a plt.legend() that concatenates the two labels in an "int, str" format?
Issue I have a function that allows me to display the circle of correlations of my pca. The problem with this function is that the labels of my variables (column names) prevent me from reading my results correctly. To overcome
Continue reading[SOLVED] Taking input from Entry in Tkinter and using it in the back-end
Issue I have created a code for plotting graphs using csv files and also a Python GUI using Tkinter which is a simple GUI for getting the input from the user and plotting graphs. Ps. The input a date that
Continue reading[SOLVED] How to install matplotlib on Alpine
Issue Trying to install matplotlib on an alpine docker image. I get a bunch of ugly messages. Am I missing some additional pre-req that needs to be manually installed? Here is docker file: FROM openjdk:8-jre-alpine RUN apk update RUN apk
Continue reading[SOLVED] Multiple arrows on the same plot using Matplotlib
Issue I want to have multiple arrows on the same plot using the list I6. In I6[0], (0.5, -0.5) represent x,y coordinate of the arrow base and (1.0, 0.0) represent the length of the arrow along x,y direction. The meanings
Continue reading[SOLVED] Specifying a color bar of multiple arrows using Matplotlib
Issue I am plotting multiple arrows using the list I6. I want these arrows to represent different values. For instance, in I6[0], the arrow represents 10, in I6[1], it represents 20 and so on along with a color bar highlighting
Continue reading[SOLVED] how to resize a scatter plot in matplotlib and add a reg line to it?
Issue i have got data in an array and would like to resize i.e. increase the height the produced plot and over plot a regression line, I made an attempt two attempts to resize but both either produced an "attribution
Continue reading