Question

Is there a way to add linear fit equations and r^2 values to multiple plots?

I have six subplots. Each is a property-property plot of pH and temperature. I would like to add the linear fit equation and r^2...

2 years ago | 1 answer | 0

Question

Assigned colorbar heights in pcolor subplots

I am making a lot of figures with pcolor subplots. I want all the x-axes to match so I am manually assigned the colorbar positio...

2 years ago | 1 answer | 0

Question

interp1 for matrix

I have two velocity matrices that I want to interpolate onto a new time vector. The matrices are both 8011x60 doubles where the ...

2 years ago | 2 answers | 0

Question

Different colormaps for subplots

I am having a frustrating problem that I think is related to how I am using handles to format the colormaps in my plots. I am tr...

2 years ago | 2 answers | 1

Question

Only include x labels on bottom subplot

I am plotting multiple timeseries together over the same time period (x = time). I want to only label the dates for the bottom s...

2 years ago | 2 answers | 0

Answered

Change colorbar scale, but keep zero value white

Yes it works if I don't include (currently commented out) the caxis line. The issue is the negatives look more extreme since the...

Change colorbar scale, but keep zero value white

Yes it works if I don't include (currently commented out) the caxis line. The issue is the negatives look more extreme since the...

2 years ago | 1

| accepted

Question

Change colorbar scale, but keep zero value white

I am trying to plot positive data as red (darker red=higher magnitude) and negative data as blue. I want zero to be white. I am ...

2 years ago | 1 answer | 1

Question

Create a plot with 2 left axes and 1 right axis

Hi! I want to plot three datasets on top of each other (same plot not subplots). Each has its own units so I want to have two ...

2 years ago | 1 answer | 0

Question

delete repeated times from matrix

Hello! I have a matrix of times and irradiance values. It seems that some of the times (itime) must be duplicates. length(uni...

2 years ago | 1 answer | 0

Question

Use different colormaps for pcolor subplots

Hi! I'm trying to plot two subplot with different color scales. I finally made the colorbars the correct colors but now my data ...

2 years ago | 1 answer | 0

Question

Why is theta=0 not on top

I am tryin to plot polar histograms of currents. For some reason 90 degrees is plotting on top. Even thought I define the direct...

2 years ago | 1 answer | 0

Question

Comparing timeseries with linkaxes but axes won't link anymore.

I have several timeseries that I am trying to compare. I want be able to zoom in to periods of 2-3 days at a time to step throug...

2 years ago | 0 answers | 0

Question

How do I slice a matrix by the values in a certain column?

I have a large "master" table that I read in as a matrix. I wanted to create new matrices for each "height" value (there are 5: ...

2 years ago | 0 answers | 0

Question

Read in dates (for timestamp) from file names

I am trying to read in data and the measurement timestamps do not include the dates. The filenames include the date/time when th...

2 years ago | 2 answers | 0

Question

Black axes for yyaxis (not default blue and orange)

I'm having a hard time making the two y axes in my yyaxis plot black instead of the default blue left axis and orange left axis....

2 years ago | 2 answers | 0

Question

Can I reorder the legend entries for gscatter

I am making a gscatter plot where the groups are depths. I want the depths to be in order from shallowest to deepest in the lege...

2 years ago | 1 answer | 0

Question

Why does gscatter create extra groups that are already represented?

I am using gscatter to plot data and then color the data by site. I have 6 sites (PK, PO, EK, EO, LK, LO) to plot but I get 9 gr...

2 years ago | 1 answer | 0

Question

Read in timestamps from weird time format

Hello! I am trying to read in data collected in CA. The timestamps are UTC times recorded as a string that includes characters I...

3 years ago | 1 answer | 0

Answered

Can I plot multiple polar histograms together?

A friend showed me this page and it works too! https://www.mathworks.com/help/matlab/ref/subplot.html#bvnckvm-1

Can I plot multiple polar histograms together?

A friend showed me this page and it works too! https://www.mathworks.com/help/matlab/ref/subplot.html#bvnckvm-1

3 years ago | 0

Question

Can I plot multiple polar histograms together?

I am trying to plot 13 weekly polar histograms to convey wind data. I tried using subplot but it doesn't seem to like the histog...

3 years ago | 2 answers | 0

Question

How to use percentages in my wind rose

I am trying to change my wind rose so that it shows percentages for each magnitude and direction instead of the number of data p...

3 years ago | 1 answer | 0

Question

How can I remove double quotes from a string?

I am reading in data from a .csv file using textread. The data looks like this: "Date","Time","Temperature" "2018-06-02","14:4...

3 years ago | 2 answers | 0

Question

Make x axis ticks and extent match

Hello, I am trying to plot timeseries data. Each data parameter was collected over a different length of time. I have successful...

3 years ago | 2 answers | 0

Question

How do I label a contour plot in the same colors as the contour lines?

I am hoping to create a contour plot with each line labeled in the same color as that line. I have found instructions for doing ...

4 years ago | 1 answer | 0