Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
2
votes
1 answer

Change grid line colour/contrast in MATLAB polarplot

I'm struggling to figure out how to change the grid line colours in a polar plot in MATLAB. I tried to manually change some axes properties that could possibly do that, but couldn't observe any changes. Just to be clear: It's not about the axes…
MD98
  • 344
  • 2
  • 9
2
votes
1 answer

Pandas plot error : Missing category information for StrCategoryConverter; this might be caused by unintendedly mixing categorical and numeric data

I was trying to plot a line plot using pandas plot method, the same data with exactly same method runs fine if I use matplotlib methods, however if I use df.plot then annotate gives me error ValueError: Missing category information for…
Himanshu Poddar
  • 7,112
  • 10
  • 47
  • 93
2
votes
2 answers

How can I get figure to refresh after changing an object's axes in Matplotlib?

Please refer to the example below. Two subplots are added, and to each a Line2D plot is inserted. I then change the Line2D's axes in the second subplot to be the first subplot. Judging by the get_geometry output this is successful. However in the…
c00kiemonster
  • 22,241
  • 34
  • 95
  • 133
2
votes
2 answers

How to remove the frame and axes around a Cartopy/Matplotlib plot?

All of a sudden, probably after some module update, I get an extra box/frame with x (0,1) and y (0,1) axes around my Cartopy map. How do I remove this? import matplotlib.pyplot as plt import cartopy.crs as ccrs #Set the projection information proj…
cgxvi
  • 31
  • 4
2
votes
1 answer

ggplot: scale second axis with error bars

I am attempting to graph two scatter plots with associated error bars using ggplot2. I would like the top of left axis to be ~0 and range down to -2000 and for the bottom of the right axis to be 0 and range up to about 0.15. I can re-scale the axes…
JRR
  • 578
  • 5
  • 21
2
votes
2 answers

Is there a "fast" way to get info about variable Google Fonts?

I am building a UI as part of a product to make it easy to choose, select and style Google fonts. I am challenged by variable fonts because I cannot find a good way to get info about these. The developer API provides metadata for all Google Fonts…
Stephen Miller
  • 503
  • 3
  • 11
2
votes
1 answer

Reverse coordinates for (multi-) polygon

I'm working with shapefiles of subdivisions of a number of countries, and for one country (Iceland), the X and Y coordinates appear to be swapped around in the shapefile. The data can be downloaded here: shapefile data; IS_50V:mork_kjordaemi is the…
2
votes
1 answer

CorePlot zoom axes independently with multi-touch

I have a iPhone app with a CorePlot graph. I would like the user to be able to zoom in and out of the graph similar to the default functionality except for one thing: When the user pinches horizontally -> zoom the x-axis. Vertically -> zoom the…
cduck
  • 2,691
  • 6
  • 29
  • 35
2
votes
2 answers

Plot with upper log-axis as a function of the lower linear-axis

I want to make a plot with linear x- and y-axis, plus a log top x-axis showing ticks as a function of the bottom x-axis. I am unsure on what to pass to the ticks though, or if it is more convenient to separately define the function to build the…
Py-ser
  • 1,860
  • 9
  • 32
  • 58
2
votes
0 answers

Matplotlib Collection Not Being Cleared

My line collection does not seem to be clearing when I run code similar to the following example code: def plot_from_ball(self, data, #more parameters): self._plots.remove() self._fig.canvas.draw_idle() self._plots, = self._ax.plot(x,y,…
tom jim
  • 21
  • 1
2
votes
1 answer

Plot with 3 different x axis and the same y axis in matplotlib?

I've been trying to plot a figure that has 3 different x axis but the y axis is the same and it's the same, contiguous curve. The first part of the x axis goes up to a point (in the figure, that's zero). The second part of the axis is on a different…
2
votes
1 answer

Axes tick marks at extremes of axes do not align with panel border

I am aware ggplot by default puts 'padding' between the axes and the data. I wish for the origin of the axes to be an actual number, e.g. 0. I know this can be done using scale_y_continuous(expand = c(0, 0)) and scale_x_continuous(expand = c(0,…
WilldoesR
  • 33
  • 4
2
votes
0 answers

Add external axes along multiple matplotlib subplot

I have generated a grid of subplots using matplotlib. Every subplot has a different combination of values for the variables "A" and "B". They are arranged so that moving along the x axis of the grid the value for A increases, and similarly for y…
254
  • 53
  • 4
2
votes
0 answers

set axes to meet using axis() R plot. Base R, figures for Publication

I've found an issue when setting pos = n when I use the axes command for creating charts in R. When the y-axis range is -6 to -1, it all works perfectly, but when my range is for example -5 to -2 the axes won't meet at the specified position; the…
James.H
  • 25
  • 6
2
votes
3 answers

XPATH: find all elements with same value until the value changes

Here's a sample XML: I want this 98 I don't want this 98
Filipus
  • 520
  • 4
  • 12