Questions tagged [axis-labels]

The labels on any axis of a plot

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Gnuplot - xtics different from grid

The gnuplot grid appears at the same position as the xtics/ytics. How can I get rid of the tic labels at some (not all) of the tics? In my case I want to have gridlines at every 0.25 in x and y ...
1
vote
2answers
34 views

D3 Group label for xAxis ticks

I have a similar dataset: [ { date: '2019-01-01', value: 100, group: 1 }, { date: '2019-01-02', value: 200, group: 1 }, { date: '2019-01-03', value: 200, ...
-1
votes
1answer
28 views

How to make superscripts bold within an expression

I'm trying to make an axis title which includes superscript and subscript but also need the whole title to be in bold. When I place bold after expression, only the normal text becomes bold, leaving ...
1
vote
1answer
15 views

How to change the y axis text in R?

I'm trying to customise the y axis text in a geom_bar plot from the default 0-200 to 0-7.. Everything I have tried so far is not working.. Can anybody advise #VeryNewToR This is my code so far: g2 &...
0
votes
0answers
49 views

Coloring the axis tick text by multiple colors

I'm trying to plot a heatmap using R's plotly package, where I'd like to have specific colors to specific labels of the y-axis tick text. Here's an example dataset: set.seed(1) df <- reshape2::...
0
votes
0answers
17 views

Dates/text as x-axis in scatter plot Excel

I have a set of measurements taken on different dates. I would like to plot that data in a Scatter plot, with the dates on the X-axis. Since there is a lot of data, I would like to reduce the number ...
0
votes
1answer
18 views

x-axis labels shifted off ggplot2 bar chart in r

I'm using geom_bar to plot the frequency of responses to a survey about introducing non-native species as pest control. I'm examining how responses to that question vary by where people live. Sample ...
1
vote
2answers
36 views

How to format xticklabels in a confusion matrix plotted with scikit-learn / matplotlib?

I've plotted a confusion matrix with scikit-learn / matplotlib thanks to different code examples I found on the web, but I'm stuck at finding how to add space between the xticklabels and the main ...
1
vote
1answer
32 views

How to add additional values to x-axis based on data column values?

I am working on scatter plots for multiple genes using a loop. Multiple png file are produced for each gene. Each gene / png file contains two scatter plots: Group1 on left and Group2 on right. Each ...
0
votes
0answers
13 views

How to show only “entire” years in a chart axis

I dont know why it create intermediate years ; 2015.5 , 2016.5, 2017.5 .... Attach a screenshot. I try to found many ways, with tags but any works $("#chart").dxChart({ dataSource: responseebitda, ...
0
votes
2answers
35 views

ggplot2, labels from column 1 but values from column 2 implemented automatically rather than by hand?

The problem seemed simple enough. I have three columns of data in a dataframe. Row one is a score, row two is the rank, and row three is the corresponding name. I want to create a graph in ggplot2 ...
0
votes
1answer
15 views

How to fix y-axis label according to Latex format?

I cannot get my y-axis label to display what I would like to do. What am I doing wrong? I've tried playing around with the dollar sign placement but no luck so far. I want to achieve the following, ...
1
vote
1answer
21 views

Keep default tickSize but add a single tick

In a jquery flot chart, I try to keep the default tickSize ( managed by the plugin itself, and I'm happy with the decisions made ), but I want to show on the axis one specific value, in fact the last ...
0
votes
0answers
21 views

MPandroidchart Double Xaxis (Top is Date and Bottom is Time) with different Label

I would like to create a line chart with 2 different labels - on the top and bottom X-axis. At the top, I want to show a Date Scale and at the bottom a Time Scale. Is anyone able to help me? I am very ...
0
votes
0answers
16 views

How to set x-axis label(own x-axis label for e.g(125,250,500,1k,2k,4k,8k)) for empty graph using mpandroidchart library

I want to create an empty graph after button graph will update. But from below code I want to display a x-axis labels like(125,250,500,1k,2k,4k,8k) but my x-axis labels are not visible because I am ...
0
votes
1answer
40 views

shared_xaxis with plotly, but can I still display the axis on each plot?

if you share the x_axis between 2 plots, they will get aligned, as expected. however, the axis is displayed only once, on a single plot and not on both anymore. Is it possible to display the axis on ...
0
votes
1answer
67 views

Change offset in scientific axis label format

I am using the following tick label formatting: ax.ticklabel_format(axis="y", style="sci", useOffset=True, scilimits=(0,0)) My problem is that the labels are floats. So the lowest values might be ...
0
votes
1answer
77 views

d3 v4 x-axis long labels are half hidden

I am working on sample responsive d3 v4 bar chart, here the x-axis labels are bit long so it is not fully visible in the chart. Please check the Fiddle code: http://jsfiddle.net/NayanaDas/w13y5kts/4/ ...
0
votes
0answers
10 views

Plotting a list of values changes the axis sequence in Python subplot

I want to create a simple line plot with the values from 4 lists. But the output of the plot changes the order of the values on the y axis. I donnt know why. I Create the lists in a loop like: DE1 = ...
-1
votes
1answer
23 views

Matplotlib , dimensione grafico impostata … label “tagliati” [duplicate]

as from the topic .. sometimes happen that given a figure size for print a plot inside the label are partially cut .. as in the example reported there is some trick in order to fit the box and the ...
1
vote
1answer
30 views

Axis title alignment with mixed multiple graphs in R

I'm using ggplot2 package to make my graphs. I have 2 graphs, that I mixed using plot_grid() from cowplot package. library(ggplot2) library(cowplot) x1 <- c(52.67, 46.80, 41.74, 40.45) y1 <- c(...
1
vote
1answer
60 views

Amcharts4: How to add an image to an axis (valueAxis) label?

With amcharts4, I would like to add an image to a ValueAxis's label. Is this possible? I've found out, how to add an SVG image to a bullet (see demo). But is it possible to do something similar with ...
0
votes
0answers
26 views

How to plot a timeseries in pyplot and map distances between dates as distances between the x coordinates of the respective datapoints

I want to plot a timeseries in a manner that if two datapoints have say a time distance of 1 year and 2 other datapoints a time distance of 2 years the distance between the x coordinates of the first ...
3
votes
1answer
37 views

Rotating axis tick labels in a heatmap plot

When I generate a heatmap plot on MATLAB 2018b, the x-tick labels are rotated automatically, but often with an angle that does not look pleasing to me. I would like to hardcode that they should ...
0
votes
0answers
17 views

Y-axis lables aren't in order when live-plotting a Pandas series [duplicate]

I'm currently following a Tkinter tutorial by sentdex on youtube and stumbled across a problem with the plotting of API data. It seems like my y-axis labels are not order from small to big, but rather ...
1
vote
2answers
46 views

How to assign dates on x-axis to the barplot in R?

I have multiple dates data set that I would like to plot using barplot functions in R. The data is for two different periods so I want to have its respective dates on the x-axis for ease of comparison....
0
votes
1answer
36 views

Ylabel rescale range and end at 0%

import numpy as np import matplotlib.pyplot as plt n = 1000 x = np.arange(0, n) y1 = np.random.normal(50, 4, n) y2 = np.random.normal(25, 2.5, n) y3 = np.random.normal(10, 1.1, n) fig, (ax1, ax2, ...
1
vote
1answer
32 views

How to label axes on a plot when making a custom function?

I need to make a custom function that would be draw several separate boxplot graphs. My function has two arguments: one for the x-axis, another for the y-axis. I want to label them with the names of ...
2
votes
0answers
40 views

flip axes of ggplot to the top and right sides using theme()

I need to flip the numbers (and tick marks) of the y-axis and x-axis to the right and top respectively (instead of where they are now). And I would like them INSIDE the map, not on the outside. This ...
0
votes
1answer
21 views

Is there a way to add a value on an axis where the curve of the graph hits it?

Okay so I got a bit of code here plotting for a population dynamics graph, and I would love to have a certain value written at each "end" of the curve, on the x and y axis, as seen here : https://...
0
votes
2answers
27 views

How to create two barplots with different x and y axis in tha same plot in R?

I need plot two grouped barcodes with two dataframes that has distinct number of rows: 6, 5. I tried many codes in R but I don't know how to fix it Here are my data frames: The Freq colum must be in ...
0
votes
0answers
42 views

Tight subplots that only contain axes labels on the exterior

I want to plot a large number of subplots in a mercator projection in a tile based manner. For this purpose I want to keep only the x axis for my bottom line of plots. Here's an example of what I mean:...
0
votes
0answers
12 views

Reformatting Axis when using scatter_matrix in Python

I'm currently using scatter_matrix in python. While the output values appear to be correct, the formatting of the axis is inconsistent, but I'm having trouble reformatting it Output currently shows ...
0
votes
0answers
16 views

Relative time axis ticks (months and years) in matplotlib

np.random.seed(0) months = range(0, 120) y = np.random.normal(0, 60, 120) plt.plot(x, y, '.'); prints this beautiful graphic: However, the values on the x axis is actually relative months. I would ...
1
vote
1answer
183 views

Is there an algorithm to figure out a 'nice' number formatting for a sequence of numbers of arbitrary order of magnitude?

I'm currently using an implementation of the Extended Wilkinson Algorithm to generate a sequence of axis tick values. For this, the algorithm is given a value range [min,max] and a number n of desired ...
2
votes
2answers
105 views

scale_x_discrete 5 ticks with 3 labels

I have 5 conditions: labels = c("Baseline","Passenger Drive","Passenger Drive","Remote Drive","Remote Drive") and I would like to put a single label of "Passenger Drive" and "Remote Drive" halfway ...
0
votes
1answer
38 views

ggplot2 with clustered columns

I am trying to plot my data and exhibit like Excel's visualization. The testing data is below: # test yq colA_1 colA_2 colB_1 colB_2 2014 Q1 1.072513 1.026764 0....
0
votes
1answer
93 views

Unable to change axis titles in plotly surface plot in python

I am working with plotly version 3.9.0 and python 3.7 . I am trying to render a simple surface plot in plotly using python. I have successfully rendered the plot with the intended color scheme but am ...
0
votes
1answer
22 views

Make the long labels on axis visible [duplicate]

I have long labels and want to make a bar chart. I have used almost every solution given on stack overflow but none seemed to work. The labels come on top of each other and are not visible. This is ...
0
votes
1answer
42 views

How to plot the xlabel in two lines of different colors?

I have two different parameters (lines y1 and y2), of different units which I want to plot in the same figure because their individual values are of similar magnitude. I therefore want to put their ...
0
votes
0answers
20 views

log mode matplotlib setting custom x ticks

I am using the following algorithm atm. I would like to remove 10^0, 10^1, etc. Instead, I would like to set the x-ticks with the values of ts. How would I do it? fig = plt.subplots() # x-Axis (...
7
votes
1answer
74 views

ggplot2 missing labels after custom scaling of axis

I am attempting to apply a custom scaling of my x-axis using ggplot2 and scales::trans_new(). However, when I do some of the axis labels go missing. Can someone help me figure out why? Setup: ...
0
votes
0answers
24 views

How to set a common overarching y axis label for subplots that each have their own label independently?

I've subplots having independent ylabels but also want to assign a common label that describes the overall operation. fig, axarr = plt.subplots(nrows=7, ncols=1, figsize=(6,6)) axarr[0].plot(data, 'r'...
1
vote
0answers
30 views

How to rename the x-labels in FacetGrid (Seaborn)?

SO I have this plot that i made with Seaborn: And What I want to do is , to rename the Week_Number's , putting Week_one rather thank Week_Number = 1 , than Week_two rather than Week_Number = 44 until ...
0
votes
0answers
21 views

MPAndroidChart X Axis is showing only one label

I'm trying to add labels to X Axis in my bar chart but it's only displaying one value instead of all values which are in array. Please take a look: Only "Fri" value is displayed. This is code ...
0
votes
1answer
32 views

How to rename the x-labels in a violinplot?

I have made a violinplot and want to rename the x-labels . ax = sns.violinplot(x="Week_Number", y="Ammonia", data=Res) this is the output: And What I want to Have is , rather than 1 I want Week 1 ...
2
votes
1answer
42 views

How to make the x-labels more readable?

So I have a Time-Series plot, but the problem with it is that the x labels are one over the other, and I'm wondering how to correct it? Here's the code: def time_series(start, end): ...
2
votes
1answer
51 views

Matplotlib: Show selected date labels on x axis

In my matplotlib graph, the datetime x axis is currently formatted with ax.xaxis.set_major_locator(dt.MonthLocator()) ax.xaxis.set_major_formatter(dt.DateFormatter('%d %b')) ax.xaxis....
0
votes
1answer
34 views

Can I have two different font sizes in a matplotlib axes label?

Is is possible to have two different font sizes in one matplotlib axes label? I know I can set the font size with fontsize = int but what I would like to do is something like: plt.ylabel('Text 1', ...
0
votes
1answer
96 views

How to add axis lables to imshow plots in python?

I copied from this website (and simplified) the following code to plot the result of a function with two variables using imshow. from numpy import exp,arange from pylab import meshgrid,cm,imshow,...