Skip to main content
Ctrl+K
PETSc v3.26.0-2-g3c5cfaeaff0b documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscDrawHG

PetscDrawHG#

An object that manages drawing histograms

Synopsis#

typedef struct _p_PetscDrawHG *PetscDrawHG;

Note#

Use a series of calls to PetscDrawHGAddValue() to create a standard histogram https://en.wikipedia.org/wiki/Histogram, where the bins have integer counts. Use calls to PetscDrawHGAddWeightedValue() to create a histogram with non-integer bin heights, such as the following https://mathematica.stackexchange.com/questions/103928/histogram-from-relative-frequency-data

See Also#

PetscDrawAxis, PetscDraw, PetscDrawLG, PetscDrawBar, PetscDrawSP, PetscDrawHGCreate(), PetscDrawHGAddValue(), PetscDrawHGAddWeightedValue()

Level#

advanced

Location#

include/petscdrawtypes.h

Examples#

src/sys/classes/draw/tests/ex9.c
src/ts/tests/ex28.c

Object Header#

_p_PetscDrawHG in src/sys/classes/draw/utils/hists.c


Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages

On this page
  • Synopsis
  • Note
  • See Also
  • Level
  • Location
  • Examples
  • Object Header
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-09-28T23:19:25-0500 (v3.26.0-2-g3c5cfaeaff0b).