Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • mapgenerator mapgenerator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 30
    • Issues 30
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • mapgeneratormapgenerator
  • Issues
  • #42
Closed
Open
Issue created Jun 07, 2018 by Laura Cifuentes@lcifuentDeveloper

Colorbar not corresponding with bounds when plotting scatter

When plotting scatter and nocountourf=TRUE, the bounds appearing in the colorbar do not correspond with the bounds passed to map generator and they also appear moved with respect to the colorbar.

The code used is:

load("~/Documents/tmp/data_scatter_mg.RData")
lon_norm <- seq(-180,180,30)
lat_norm <- seq(-90, 90, 30)
colour_scatt = c("#0000FF", "#2424FF", "#4848FF", "#6D6DFF", "#9191FF", "#B6B6FF", "#DADAFF", "#FFAAAA", "#FF5555", "#FF0000")
bounds = c(-0.6, -0.5, -0.4, -0.3, -0.2, -0.1,  0.0,  0.1,  0.2,  0.3,  0.4)

pm$aplot(x = as.array(lon_norm),
         y = as.array(lat_norm),
         scatter_data = df3,
         nocontourf=TRUE,
         colors=colour_scatt,
         bounds=bounds,
         ticks=bounds)

Assignee
Assign to
Time tracking