x-axis Questions

3

Solved

I want to plot data of the following form, using matplotlib bar plot: data = {'Room A': {'Shelf 1': {'Milk': 10, 'Water': 20}, 'Shelf 2': {'Sugar': 5, 'Honey': 6} }, 'Room B': {'Shelf 1': ...
Ullrich asked 4/10, 2013 at 14:59

10

I need help with setting the limits of y-axis on matplotlib. Here is the code that I tried, unsuccessfully. import matplotlib.pyplot as plt plt.figure(1, figsize = (8.5,11)) plt.suptitle('plot tit...
Bivins asked 23/9, 2010 at 11:32

6

Solved

I want to have bold labels on my axis, so I can use the plot for publication. I also need to have the label of the lines in the legend plotted in bold. So far I can set the axis labels and the lege...
Romulus asked 21/4, 2015 at 8:29

1

Solved

I'm trying to plot two plots side by side using base R. I'd like them to share the title and the x-axis and y-axis label. However, the range of the plots is different, so I want to keep the number ...
Generic asked 18/10, 2023 at 11:2

12

Solved

I am creating a figure in Matplotlib like this: from matplotlib import pyplot as plt fig = plt.figure() plt.plot(data) fig.suptitle('test title') plt.xlabel('xlabel') plt.ylabel('ylabel') fig.save...
Dremadremann asked 16/9, 2012 at 5:54

2

Solved

In the screenshot below, all my x-labels are overlapping each other. g = sns.factorplot(x='Age', y='PassengerId', hue='Survived', col='Sex', kind='strip', data=train); I know that I can remove a...
Gettogether asked 6/8, 2016 at 21:56

2

Solved

From the help: set_xlim: Set the data limits for the xaxis. set_xbound: Set the lower and upper numerical bounds of the x-axis. That is not very clear, so let’s say that I plot something: imp...
Sangraal asked 12/7, 2012 at 19:59

5

I'm trying to make a plot similar to this excel example: I would like to know if there is anyways to have a second layer on the x tick labels (e.g. "5 Year Statistical Summary"). I know I can m...
Parian asked 12/12, 2013 at 0:14

2

Solved

Suppose I'm looking at an n x n grid and on each axis I have labels of say, animals. But I'm also interested at looking at the relationship between groups, subgroups, etc. of the animals. So for ex...
Herodotus asked 21/6, 2016 at 1:32

9

Solved

I have a simple factorplot import seaborn as sns g = sns.factorplot("name", "miss_ratio", "policy", dodge=.2, linestyles=["none", "none", "none", "none"], data=df[df["level"] == 2]) The prob...
Librarianship asked 24/10, 2014 at 1:15

5

Solved

I would like to plot only part of the array, fixing the x part, but letting the y part autoscale. I tried as shown below, but it does not work. Any suggestions? import numpy as np import matplotlib...
Incarnate asked 5/4, 2015 at 19:59

5

Solved

I have an array of timestamps in the format (HH:MM:SS.mmmmmm) and another array of floating point numbers, each corresponding to a value in the timestamp array. Can I plot time on the x axis and t...
Cambist asked 15/10, 2009 at 18:7

3

Solved

I would like to assign for x axis in matplotlib plot full date with time but with autoscale I could get only times or dates but not both. import matplotlib.pyplot as plt import pandas as pd times ...
Invalid asked 6/10, 2015 at 14:20

3

Solved

df (Pandas DataFrame) has two columns: Date (as datetime64) and Amount (as float). I plot the values from Amount column against time, using barplot: sns.barplot(x="Date", y="Amount", data=df) plt...
Aurochs asked 28/11, 2018 at 21:3

5

This problem seems simple enough, but I can't find a pythonic way to solve it. I have several (four) subplots that are supposed to have the same xlim and ylim. Iterating over all subplots à la f, ...
Lumbye asked 23/6, 2015 at 15:24

2

Solved

I'm attempting to plot many plots, here's a sample of how the data is organized: My intention is to build a series of subplots for either hours or days (say 7 days in a week, or 24 hours in a da...
Amon asked 10/3, 2016 at 17:9

1

I have a dataset as below. I would like to plot a variability plot like in JMP with Grouped X-axis with multiple categories and legend by row. Example of dataset and Plot from JMP are below. Is the...
Xerox asked 3/3, 2019 at 2:21

2

Solved

All I want is quite straight forward, I just want the locator ticks to start at a specified timestamp: peudo code: locator.set_start_ticking_at( datetime_dummy ) I have no luck finding anything so ...
Disorganization asked 13/5, 2016 at 21:33

2

Solved

I am plotting a bar chart in python using matplotlib.pyplot. The chart will contain a large number of bars, and each bar has its own label. Thus, the labels overlap, and they are no more readable. ...
Risteau asked 24/7, 2013 at 7:27

2

Solved

I've read other questions here offering plt.gca().get_xaxis().get_major_formatter().set_useOffset(False) as a way to remove axis offsets on the current plot, but is there any way to do this by d...
Coverley asked 11/6, 2014 at 19:28

2

Solved

I've tried to duplicate plotted graphs originally created with flotr2 for pdf output with matplotlib. I must say that flotr is way easyer to use... but that aside - im currently stuck at trying to ...
Rakes asked 21/1, 2013 at 13:54

1

Solved

I am trying to create bar graphs of letter frequency in Python. I thought the best way to accomplish this would be matplotlib, but I have been unable to decipher the documentation. Is it possible t...
Subtropics asked 1/2, 2010 at 14:55
1

© 2022 - 2024 — McMap. All rights reserved.