axes

R-Project: How to limit axes in SPI plot? ylim & xlim don't work

二次信任 提交于 2021-02-11 08:59:28
问题 Dear stackoverflow community, I'm quite new in R and this is my first stackoverflow entry so please show mercy with me if it's not the perfect questioning. I'm calculating standardized precipitation index (SPI) with the package "SPEI" for a time series of a climate station with 20 years of monthly precipitation data. I have done this for the timescale of 1 and 12 month like this: spi1 <- spi(SPI_Anu_input_ts[,'PRCP_Anu'], 1) spi12 <- spi(SPI_Anu_input_ts[,'PRCP_Anu'], 12) The output of SPI is

both a top and a bottom axis in pylab (e.g. w/ different units) (or left and right)

我们两清 提交于 2021-02-07 14:23:30
问题 I'm trying to make a plot with pylab/matplotlib, and I have two different sets of units for the x axis. So what I would like the plot to have is two axis with different ticks, one on the top and one on the bottom. (E.g. one with miles and one with km or so.) Something like the graph below (but than I would like multiple X axes, but that doesn't really matter.) Anyone an idea whether this is possible with pylab? 回答1: This might be a little late but see if something like this would help: http:/

both a top and a bottom axis in pylab (e.g. w/ different units) (or left and right)

独自空忆成欢 提交于 2021-02-07 14:22:20
问题 I'm trying to make a plot with pylab/matplotlib, and I have two different sets of units for the x axis. So what I would like the plot to have is two axis with different ticks, one on the top and one on the bottom. (E.g. one with miles and one with km or so.) Something like the graph below (but than I would like multiple X axes, but that doesn't really matter.) Anyone an idea whether this is possible with pylab? 回答1: This might be a little late but see if something like this would help: http:/

cartesian coordinate system with chart.js

泄露秘密 提交于 2021-02-05 09:31:47
问题 I'm trying to create a cartesian coordinate system (i.e. for coordinate geometry) using chart.js. The documentation actually states "cartesian axes" but I'm not seeing any evidence that such a name is warranted. My chart is as follows: <canvas id="myChart" width="400" height="400"></canvas> <script> var ctx = document.getElementById('myChart').getContext('2d'); var scatterChart = new Chart(ctx, { type: 'scatter', data: { datasets: [{ label: 'Scatter Dataset', data: [{x:-3,y:5},{x:-2,y:0},{x:

How can I modify my subplot positions to stop them overwriting each other?

a 夏天 提交于 2021-02-05 09:24:06
问题 I am trying to create a subplot (6 plots) of world maps into which I am writing chosen shapefiles. My issue is with my placement of subplots: They are overwriting each other. I understand from the other questions like this on stackoverflow, that it is because the axes are overlapping somehow. But I thought I had created positions that they would just be 'side-by-side' (see code below). I have tried to make the axes transparent and that doesn't seem to help. My question is: how can I modify

how to prevent axes from intersecting in ggplot2

空扰寡人 提交于 2021-02-04 17:48:34
问题 I'm using ggplot2 to make line graphs of some log-transformed data that all have large values (between 10^6 and 10^8); since the axes doesn't start at zero, I'd prefer not to have them intersect at the "origin." Here's what the axes currently look like: I'd prefer something more like one gets from base graphics (but I'm additionally using geom_ribbon and other fancy things I really like in ggplot2, so I'd prefer to find a ggplot2 solution): Here's what I'm doing currently: mydata <- data

How do I change the axes' units in a figure?

£可爱£侵袭症+ 提交于 2021-01-28 09:37:42
问题 I'm making figures of some galaxies velocities with matplotlib , from some .fits files. The problem is that the axes in the figure show the galaxy's size in pixels, and I want to display them as Declination and RightAcension (in angle units). I already know that each pixel has a size of 0.396 arcseconds. How can I convert pixels to arcseconds in both X and Y axes? The code is the folowing: ############################################################################## # Generally the image

Outliers in Axes in D3 (Mixing numerical and categorical specifications)

自古美人都是妖i 提交于 2021-01-03 06:50:47
问题 I am trying to set something up in D3 where I have an axis for some collection of datapoints. In the case of outliers for the datapoints, however, I'd like to put those outliers in a bucket on an axis. Is there a way that I could specify an "outlier tickmark" for the axis to serve as a partition for placing those datapoints? Example: [1,3, 7, 12, 2048] * * * * * --1--2--3--4--5--6--7--8--9--10--11--12--13--14--15--O-- This following is the current code I have. It seems to me that scales only