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…
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…
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…
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…
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…
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…
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…
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…
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…
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,…
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…
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,…
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…
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…