Questions tagged [plot]

a graphical technique for representing a data set. Usually showing the relationship between two or more variables.

Filter by
Sorted by
Tagged with
1 vote
0 answers
27 views

How to plot .tif file colour coding onto the map using JavaScript [closed]

I want to plot color coding from the .tif file into the map with the help of react-leaflet. How can this be done? I am open to other better suggestions. My core goal is to display color coding given ...
user avatar
1 vote
1 answer
22 views

Display the date on a time series graph

I have the following script that displays graphs of a time series for a variable: import pandas as pd from pandas import read_csv from matplotlib import pyplot %matplotlib inline from matplotlib.pylab ...
user avatar
  • 109
0 votes
1 answer
52 views

Plotting multiple subplots with different shapefiles in background

I am trying to plot side by side GeoPandas shapefiles using matplotlib but the titles, xlabel and ylabel are not plotting correctly. fig, axes = plt.subplots(1,2, figsize=(10,3), sharex=True, sharey=...
user avatar
  • 153
2 votes
1 answer
65 views

Creating buffers in ArcGIS Pro from points with variable accuracies

I have quadrilateral forest sample plots defined by GPS coordinates (and accompanying accuracies) taken at each plot corner. Using ArcGIS Pro, I inputted these coordinates as points and created ...
user avatar
1 vote
0 answers
38 views

How do you plot wiggle plots in QGIS?

I am trying to plot magnetic data along a profile displayed on a map in QGIS 3.22.2. This is a fairly common display type for geophysical data, but I can't find any examples for doing it in QGIS. This ...
user avatar
4 votes
1 answer
398 views

Converting lines (edges) to polygons with Python

Is there any working function to convert lines (edges) to polygons with Python or I need to implement it myself? I have pairs of points - edges: [[10464, 27071], [22358, 15839], [10464, 24781], [...
user avatar
  • 377
0 votes
1 answer
53 views

How to add coastline over a plot of a RasterLayer in R?

I'm working with raster images. I need to add the european coastline over this plot(fdiff_north) in order to get a more usable image`: I got this plot by using these codes: ext <- c(4e+06, 5200000,...
user avatar
1 vote
0 answers
127 views

GeoPandas: assigning unique colors and labels to entries

I would like to plot a map with colors that depend on a categorical variable, i.e. a column with integer number labels (0, 1, 2, ..., 10 for example). Using gdf.plot(column=categorical_variable) I am ...
user avatar
  • 11
2 votes
1 answer
62 views

Rasterio show_hist display issue

I'm trying to display the histogram for the bands but I keep getting the following object whenever I execute show_hist. Here is the code I executed: from rasterio.plot import show_hist show_hist(...
user avatar
  • 793
0 votes
1 answer
44 views

NA outcome when running over() between a SpatialPoints and SpatialPolygonsDataFrame

I am having a problem when over() doesn't give a value but keep giving meNA for every field in the outcome data.frame. The aim is to have the counts of tardigrade occurrences in each biogeoregion. ...
user avatar
1 vote
1 answer
557 views

Showing the legend in GeoPandas when color is given by value

I'm coloring the entities of a GeoDataFrame by the column 'Color'. This column has been created to plot the different continents with different colors, so all the countries belonging to the same ...
user avatar
0 votes
1 answer
69 views

Spectral profile mapping for Sentinel

I want to plot spectral profile for Sentinel image. For this, I write such a code: var Sentinelbands =['B2','B3','B4','B5','B6','B7','B8','B8A','B11','B12']; var Sentinel=ee.ImageCollection("...
user avatar
  • 97
2 votes
2 answers
145 views

Cannot plot GeoDataFrame [closed]

I am new to geopandas and having trouble plotting geometry. I have searched the forum and none of the other questions address this issue. import shapely.wkt import geopandas as gpd import pandas as pd ...
user avatar
0 votes
1 answer
58 views

Plotting large map into several smaller A4

I am using QGIS. I have a big map and licence for exploration. How can I split map with layer bounds (red line polygon-licence) in a few A4 which one will continue to another one etc. in scale 1:5000?
user avatar
0 votes
0 answers
30 views

Pyferret axes lines thickness

Is there a way to set thickness of specific axes in ferret? With the default pen the lower axis is thin or invisible if I output image as png. I've tried setting PPL PEN 0, 7, which makes this lower ...
user avatar
  • 85
2 votes
1 answer
45 views

How do I add newline/return character as delimiter on NCAR?

I try using e.g. delimiter=\n or delimiter=str_get_nl() but to no avail. Does anyone know what is the correct command?
user avatar
  • 129
2 votes
1 answer
235 views

Charting features by a list of properties in Google Earth Engine

I am trying to create a chart in Earth Engine using the ui.Chart.feature.byFeature function. I am basing my code off of the following example provided by Google Developers... // Import the example ...
user avatar
0 votes
0 answers
26 views

Using linear regression on subplots [duplicate]

I was able to create 2 plots, one of which has a linear regression. I want to do linear regression for each subplot, how to do it? X=trw["CID"].values y=trw['b1_T34UFE_'].values df=pd....
user avatar
  • 9
1 vote
1 answer
25 views

R: plotting lines (SpatialLinesDataFrame) with a different line type according to a nominal attribute

Data I have two pairs of lines (SpatialLinesDataframe), 4 overall. The dataset is pasted below: mydata <- new("SpatialLinesDataFrame", data = structure(list(length = c(500.842234293619, ...
user avatar
  • 1,444
2 votes
1 answer
861 views

Plotting multiple maps using GeoPandas

I have two GeoDataFrames. The first one have the administrative boundaries of the 25 regions of a country. The second one, the urban fabric of the same country. regions.head() COD NAMEREG ...
user avatar
2 votes
1 answer
387 views

AttributeError while Plotting GeoDataFrame

I am new to geopandas. I am trying to plot the locations of bays and gulfs. I have a csv file containing their names. After geocoding and finding their locations, I tried to plot the points on a world ...
user avatar
1 vote
0 answers
33 views

Plotting overlapping vector and raster maps

I am attempting to plot overlapping vector and raster maps with following code: fig, axes = plt.subplots(1,3, figsize=(12, 5)) plt.subplots_adjust(left=None, bottom=None, right=1.1, top=None, wspace=...
user avatar
  • 800
0 votes
1 answer
92 views

Plotting LISA map using R

I want to draw the following LISA map using LISA plot: I have coded as follow: o1<-California_shp$houseValue o1 [1] 208747.39 118700.00 117146.43 89611.54 107893.75 77731.25 216783.78 [8] ...
user avatar
  • 9
2 votes
1 answer
305 views

Plotting wind vectors arrows from U and V rasters in QGIS

I have a 'U' and 'V' rasters for wind direction and I want to plot wind direction arrows in QGIS. This is easy to do in Python/matplotlib with the matplotlib.pyplot.quiver function, but I can't find a ...
user avatar
  • 353
0 votes
1 answer
44 views

Error while ploting multiple geopandas (ArcMap and KML) in the same projection?

I seek help on: Finding possible errors on projections management Guiding me on which should be the best way to know which "labels - colors" are within the path line (not exposed here) -- ...
user avatar
1 vote
0 answers
31 views

Creating fencing 3D plot using QGIS

I have a DEM and velocity matrices of several transects. Is it possible to import the matrix (or 2D plot of the matrix, heatmap) to QGIS ?
user avatar
  • 107
2 votes
1 answer
32 views

How can I plot WorldPopProject data (GeoTIFF) in R with an appropriate scale?

I am a complete beginner to using any GIS tools and struggling through some very basic concepts. I am trying to load data from the WorldPopProject (https://www.worldpop.org/geodata/summary?id=6365) ...
user avatar
  • 23
1 vote
1 answer
134 views

Spectral signature and its standard deviation using R

I am trying to plot a spectral signature using R similar to the one shown in the image. This plot was obtained using Semiautomatic Classification Plugin-QGIS. Half-transparent regions show the range ...
user avatar
  • 353
2 votes
1 answer
178 views

Surf3D, example from ggRandomForests: Random Forests for Regression

I have a model and I want to use the surf3D function in R, and produce a plot similar to the following (the image is the example from "ggRandomForests: Random Forests for Regression"). ...
user avatar
  • 27
1 vote
2 answers
105 views

Exchange of coordinates in GeoPandas

I was plotting some points with the plot function in GeoPandas. I realized that when I plotted using Point.lat, Point.long, the points didn't fall at the right place but when I exchanged the ...
user avatar
4 votes
1 answer
187 views

Changing raster plot break values text using R

I have the following R code that generates a plot. b <- c(0,30,60,90,120,150,180) rast <- raster("study.area.accessibility.tif") r <- clamp(rast, 0, 180) plot(r, col=topo....
user avatar
7 votes
3 answers
1k views

Plotting polygons as separate plots using Python

I have a shapefile with several polygons in a geodataframe. I want to plot each individual polygon in their own plot. I tried for pol in z3: plt.figure() plt.plot(pol) plt.show() But this just ...
user avatar
  • 139
0 votes
0 answers
260 views

Plotting time series in QGIS

I have a shapefile with points, like this: x, y, id, data -1.3345,-0.4760, 1, data.csv The data.csv contains: date, data 2020-01-01, 1 2020-01-02, 2 2020-01-03, 3 2020-01-04, 4 How can I plot the ...
user avatar
6 votes
1 answer
2k views

Plotting multiple raster stacks with rasterVis::gplot and ggplot2::facet_wrap

I'm trying to ggplot2::facet_wrap a stack of rasters, and then call geom_raster to add more rasters on top of the previously mapped raster stack. Here is a very simple example dataset to re-create ...
user avatar
  • 1,217
3 votes
1 answer
87 views

Fitting the plotted pixels to the country border in QGIS

I have created a plot in Python 3.7 over Alaska. Firstly, the pixels covered a lot more than shown in the image (below). Now I have set the lat lon extend to fit the plot 'better'. Is there a way to ...
user avatar
  • 772
1 vote
3 answers
1k views

How can I constrain my plot to the extent of the raster image?

I am currently trying to create a multi-panel plot to display six raster images (3,2) using par() and plot(raster()). When I plot the rasters though, R is displaying the Y bounds far beyond what is ...
user avatar
1 vote
0 answers
157 views

Plotting city locations on Python 3 [closed]

My question is a follow-up of this: plotting US cities on a map with matplotlib and basemap. I would like to use some Python library to plot on a map city locations, starting from a list like this: ...
user avatar
6 votes
1 answer
5k views

Plotting a raster stack with ggplot2

My aim is to plot a rasterstack as a single image using ggplot2. First, I apply ggplot on a single layer raster using the following code: #Load packages library(raster) library(ggplot2) #Create a ...
user avatar
  • 187
0 votes
0 answers
26 views

Plot something on lat long in PHP

Is there some sort of plotting system which lets you do this? (in PHP): ex. plot(lat,long,data_show_onhover) My CSV file that I want to plot on the map looks like this: something,something,something,...
user avatar
3 votes
1 answer
118 views

Adding points to QgsRubberBand polyline instead of giving list of points

canvas = iface.mapCanvas() polyline = QgsRubberBand(canvas, False) # False = not a polygon points = [QgsPoint(1,1), QgsPoint(2,2), QgsPoint(3,3), QgsPoint(4,4)] polyline.setToGeometry(QgsGeometry....
user avatar
0 votes
0 answers
35 views

Analyzing NDVI rasters with same dimensions but different extents with Raster Calculator

I have drone sourced remote sensing imagery (NDVI) of a trial site set up to measure yield response to varying nitrogen (N) rates. The trial includes N rates ranging from 0 to 600 kg/ha. The trial ...
user avatar
2 votes
1 answer
370 views

Problem starting the plugin Data Plotly

I'm using QGIS Desktop 3.10.3 with GRASS 7.8.2 I tried to run the plugin "Data Plotly" https://anitagraser.com/2017/12/06/data-exploration-with-data-plotly-for-qgis3/ After installing the plugin I ...
user avatar
  • 23
0 votes
0 answers
138 views

How to plot pies or histograms around points (GeoPandas) containing different level values indicators?

This is my code (a simple sample of df). I'd like to have around each point on a map, an histogram or pie showing the mechanical bikes out of the total. import pandas as pd pd.DataFrame( {'...
user avatar
1 vote
0 answers
257 views

Plotting alignment issues with plotting raster list of raster objects and multiple polygons together

I am very new to R and am trying to plot one object from a raster list with multiple polygons (boundary shapefiles) together in one plot. When I resize the plot window, however, the alignment of the ...
user avatar
  • 81
3 votes
1 answer
450 views

Plot points with coordinates from txt-file [duplicate]

I'm using QGIS 3.12. I have a list of coordinates in txt file, as follows "longitude" "latitude" 48.819056, 2.127009 48.782213, 2.143340 48.801580, 2.355238 48.904471, 2.296038 How to ...
user avatar
0 votes
1 answer
77 views

Unable use a Temporal Plot Tool in GRASS GIS

I installed GRASS GIS following the tutorial on the website for the Ubuntu 18.04 version. However, the Temporal Plot Tool function is not working, and is giving an error related to python. Below is ...
user avatar
  • 41
2 votes
1 answer
337 views

Insert Dataframe data into a map using Geopandas

I posted my question in stackoverflow previously, howeverI think this site is a better place to find some clues (this is my first project with spacial data). I need to insert some coordinates from a ...
user avatar
  • 121
1 vote
1 answer
953 views

Rasterio histogram save as image

I have create some histogram using DEM as dataset and rasterio using show_hist to take histogram but I can't find some way to save this histogram as image.any idea? import rasterio from rasterio.plot ...
user avatar
  • 1,023
2 votes
0 answers
75 views

Plotting raster and vector data on same Plot

I have a raster and croped it by vector boundary. Vector reprojected to crs of the raster, but when I plot it does not show on the same figure? Something with plotting extend, but how to make them ...
user avatar
1 vote
1 answer
73 views

Draw edges connecting vertexes (by id) on QGIS

I've been trying to figure out how to draw edges connecting a series of geographical points. There are many solutions that I've thought of but none of them take any advantage of the QGIS tools. ...
user avatar