Skip to main content

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 votes
0 answers
12 views

How to create a boxplot in GEE using JS code editor?

I have an image with all the required BoxPlot values as an individual band. I want to create a boxplot for each pixel when I click on it. Do you know how I can do that? combinedImage Image (7 bands) ...
Abinash Silwal's user avatar
1 vote
1 answer
716 views

Setting the background color when plotting in GeoPandas

I am wondering if there is an easy way in GeoPandas to change the background color of a plotted map. Here is my code; I can't figure out how to change the white background color to any other color. ...
sMartines's user avatar
  • 121
1 vote
0 answers
73 views

R raster plot produces small/barely visible grid cells with large gaps in between

I have a dataset with lat/lon coordinates. I've converted the dataset in R to a raster layer using raster::rasterFromXYZ (Raster package). The dimensions of the raster layer are: 1249, 2551, 3186199 (...
TAD's user avatar
  • 11
0 votes
0 answers
90 views

How to fix error when plotting TypeError: 'MultiLineString' object is not iterable

I am following a Genetic Algorithm for optimizing a bus route network in github https://github.com/Schmidtbit/Bus-Route-Optimization. I have finished cleaning up most of the errors and getting the ...
Jiyuu's user avatar
  • 1
0 votes
0 answers
27 views

Can I plot the individual style symbols/lines from a single layer to a PDF, and have the PDF have those different styles as different layers

I am working with a single layer. I assign the different features different attributes. Then I use categorized styling according to those attributes. In the layer window, these are easy to toggle on ...
Axel Nelstrand's user avatar
0 votes
1 answer
1k views

How can I plot a raster file with its scale bar in Python?

Suppose I have a file file.tif. I want to plot a scale bar based on its CRS, using Python. I've tried using a mix of rasterio, matplotlib and other techniques, but I fail because of the scale bar part,...
Pedro Vinícius's user avatar
0 votes
1 answer
82 views

How to keep the X and Y bounds fixed when I plot geographical coordinates using mapview?

I am trying to plot occurrences in different months using the mapview () function x=data.frame(read.csv(file.choose())) ## choose the original CSV file downloaded from ebird jan=x[which(x$Month == &...
Anurag Mishra's user avatar
1 vote
0 answers
104 views

Which software was used to generate this type of map?

I have been struggling to find the software from which these maps are generated. It seems like they are created using the same software but I could not find which one. I want to plot variables such ...
T. J.'s user avatar
  • 19
1 vote
1 answer
294 views

How to create line time-series plot using .tiff images in R

I have monthly .tiff images from 2000-2020 in following way: 200001 200002 200003 . . . 202012 (format is yyyymm) Using the code given below, I am able to calculate monthly averages but I am not able ...
Alexia k Boston's user avatar
1 vote
1 answer
684 views

R: Plotting a shapefile, plots the shapefile many times, not just once

I am trying to make a map using a particular shapefile as the first layer. The shapefile has multiple attributes and when I plot it, the plot shows the spatial data multiple times for each column in ...
Koda's user avatar
  • 25
5 votes
1 answer
607 views

Robinson projection in GeoPandas

How can I apply Robinson projection in a GeoPandas plot? import geopandas as gpd world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) world.plot(column='pop_est')
Stücke's user avatar
  • 539
1 vote
1 answer
202 views

lidR plot large LAS crashes RStudio

I'm trying to plot a large LAS (9GB, 269,671,586 points) using plot in the lidR library. (RStudio version 2022.07.2 Build 576, R version 4.2.2, lidR version 4.0.1) I have plotted smaller LAS ...
GlenS's user avatar
  • 566
1 vote
0 answers
126 views

Calculate and plot time series of tasseled cap from Landsat8 in GEE

My goal is to calculate TC for every image in the image collection and add it as another band to those images. (especially TCW and TCG). Then I would like to plot a scatter chart of the average TCW/...
proch's user avatar
  • 11
1 vote
1 answer
582 views

GeoPandas | Legend not showing

Goal: Show legend I've set legend=True and no difference was made. for i in list(range(NUM_SLIDES)): d = {'col1': ['Foo', 'Bar', 'Sue'], 'geometry': [foo[i], bar[i], sue[i]]} gdf = gpd....
StressedBoi_69420's user avatar
1 vote
2 answers
558 views

Plotting hillshade with terra

I have a hillshade in the form of a SpatRaster object. When I plot it like this: plot(hs.rast, col = grey(c(0:100)/100), legend = F), the plotting function seems to apply some sort of smoothing to the ...
Abdirizak's user avatar
0 votes
1 answer
112 views

Trying to get a plot item in the layout to only show the section from the Atlas that is being shown

I am new to QGIS and don't know coding at all, slowly trying to pick it up. I am creating an atlas of a area that has been surveyed over the seabed during cable instalations in the North Sea. I have ...
Andy Laverty's user avatar
1 vote
2 answers
2k views

Subset polygons in R

I am trying to separate a specific area on my window of analysis. I have a georeferenced floor plan with rooms as polygons. I want to select and plot only some the rooms I tried this: rooms <- ...
MaryM's user avatar
  • 39
1 vote
1 answer
203 views

Percentage of point features within polygon boundaries R

I am trying to create a histogram with the percentage of a concentration of points in a specific area. My data is someting like this: setwd("C:\\Users\\HP\\Desktop\\myrtos") getwd() library(...
MaryM's user avatar
  • 39
1 vote
1 answer
75 views

Reading and storing 1st pixels from multiple rasters

I want the code to read 1st pixel from a bunch of rasters (for eg. 1st pixel from 6 different rasters (having same extent and same number of pixels) and convert it into array followed by reading 2nd ...
surdeep's user avatar
  • 51
1 vote
0 answers
249 views

How to make contourf plot based on points boundary?

I have a csv file including lan, lon, z values. I've been trying to make contourf based on bellow code : import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.interpolate ...
hamed's user avatar
  • 101
0 votes
1 answer
271 views

How to set number of columns with stack or brick or spatraster in rasterVis::levelplot?

If I have a spatraster with 6 layers, rasterVis::levelplot will give a 2 rows and 3 columns plot. How can I change it to 3 rows and 2columns? library(rasterVis) library(terra) f <- system.file(&...
jackywang's user avatar
  • 309
0 votes
1 answer
41 views

Trouble overlaying plots in R

I've produced a raster using IDW to make predictions across California, and now I'm trying to overlay the raster image with the border/shapefile of California. I've ensured the CRS projections are the ...
Dougie G's user avatar
1 vote
0 answers
65 views

How can I make two legends of two different plots with the numeric scale?

I want to campare two images about Surface water temperature from Copernicus, I've imported them and cropped them, but the legends with the colours are slightly different, how can I do for creating a ...
Magali's user avatar
  • 11
1 vote
1 answer
196 views

QGIS Plot Layout SVG in HTML Element - Size Problem

I would like to use an SVG in the QGIS Plot Layout. I am using an HTML Element to display a simple SVG, sized using mm units. The SVG does not seem to display with the desired dimensions. I have ...
Mr_Robinini's user avatar
1 vote
1 answer
693 views

QGIS aggregate expression to filter selected features in 2nd layer

I´m working with two layers in QGIS: First one with point geometries representing water quality sampling places (LAYER A). The second is a spreadsheet (no geometries) that contains pollution values ...
janavaarro's user avatar
0 votes
0 answers
477 views

Creating elevation profile from points with X,Y,Z coordinates

I have a set of points that contain X, Y and Z data. I am trying to plot these either in 3d space or 2d space using X and Z. As an extra it would be nice to be able to compare different sets of data ...
Jim's user avatar
  • 1
2 votes
1 answer
1k views

Using Python to plot flight data over portion of US?

Question I have a dataset in Python that tracks the flightpath of an object. I know the minimum and maximum latitude and longitude of the flightpath. The flightpath is entirely over the Montana. Is ...
nwsteg's user avatar
  • 121
0 votes
1 answer
147 views

Creating BoxPlot in R

I want to create boxplot to show Forest Percent by localunit (GaPa_NaPa). The attribute data is as shown below:- The data frame is as shown below:- structure(list(GaPa_NaPa = c("Gaidahawa", ...
Walker's user avatar
  • 301
0 votes
0 answers
420 views

Export the map plotted in R to QGIS

I want the map plotted in R to be export in QGIS. The data source that I used for coding in R is as follows:- For Raster:-https://download.hermes.com.np/land-cover-map-of-nepal-2010/. For Vector :-...
Walker's user avatar
  • 301
1 vote
0 answers
191 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 ...
piyush kasturi's user avatar
1 vote
1 answer
39 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 ...
Bouram's user avatar
  • 165
0 votes
1 answer
1k 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=...
pyaj's user avatar
  • 175
2 votes
1 answer
316 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 ...
Melody Vetrovec's user avatar
2 votes
0 answers
105 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 ...
Simon Allerton's user avatar
6 votes
1 answer
4k 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], [...
Peter.k's user avatar
  • 477
0 votes
1 answer
406 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,...
Fabio Castelli's user avatar
2 votes
0 answers
933 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 ...
shoyip's user avatar
  • 21
2 votes
1 answer
482 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(...
Geosphere's user avatar
  • 763
0 votes
1 answer
47 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. ...
Uyen Bui's user avatar
2 votes
1 answer
7k 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 ...
Miguel Gonzalez's user avatar
0 votes
1 answer
541 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("...
Solmaz's user avatar
  • 149
2 votes
2 answers
713 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 ...
Marina W.'s user avatar
2 votes
1 answer
559 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?
Jasmin Bosnia's user avatar
2 votes
1 answer
122 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?
newbie125's user avatar
  • 129
2 votes
1 answer
1k 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 ...
Eli Simonson's user avatar
1 vote
1 answer
74 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, ...
NewAtGis's user avatar
  • 1,536
2 votes
1 answer
5k 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 ...
José Rojas's user avatar
2 votes
1 answer
2k 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 ...
Padmanabha's user avatar
  • 1,402
1 vote
0 answers
156 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=...
Sher's user avatar
  • 894
0 votes
1 answer
296 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] ...
Catrin's user avatar
  • 9