1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Draw/PetscDrawBarCreate.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PetscDrawBarCreate</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.10.3 2018-12-18</b></div>
<div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.10.3 v3.10.3 docs/manualpages/Draw/PetscDrawBarCreate.html "><small>Report Typos and Errors</small></a></div>
<A NAME="PetscDrawBarCreate"><H1>PetscDrawBarCreate</H1></A>
Creates a bar graph data structure.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdraw.h"
#include "petscsys.h"
#include "petscviewer.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../Draw/PetscDrawBarCreate.html#PetscDrawBarCreate">PetscDrawBarCreate</A>(<A HREF="../Draw/PetscDraw.html#PetscDraw">PetscDraw</A> draw,<A HREF="../Draw/PetscDrawBar.html#PetscDrawBar">PetscDrawBar</A> *bar)
</PRE>
Collective over <A HREF="../Draw/PetscDraw.html#PetscDraw">PetscDraw</A>
<P>
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
<DT><B>draw </B> -The window where the graph will be made
<br>
<P>
<H3><FONT COLOR="#CC3333">Output Parameters</FONT></H3>
<DT><B>bar </B> -The bar graph context
<br>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
Call <A HREF="../Draw/PetscDrawBarSetData.html#PetscDrawBarSetData">PetscDrawBarSetData</A>() to provide the bins to be plotted and then <A HREF="../Draw/PetscDrawBarDraw.html#PetscDrawBarDraw">PetscDrawBarDraw</A>() to display the new plot
<P>
The difference between a bar chart, <A HREF="../Draw/PetscDrawBar.html#PetscDrawBar">PetscDrawBar</A>, and a histogram, <A HREF="../Draw/PetscDrawHG.html#PetscDrawHG">PetscDrawHG</A>, is explained here http://stattrek.com/statistics/charts/histogram.aspx?Tutorial=AP
<P>
The MPI communicator that owns the <A HREF="../Draw/PetscDraw.html#PetscDraw">PetscDraw</A> owns this <A HREF="../Draw/PetscDrawBar.html#PetscDrawBar">PetscDrawBar</A>, but the calls to set options and add data are ignored on all processes except the
zeroth MPI process in the communicator. All MPI processes in the communicator must call <A HREF="../Draw/PetscDrawBarDraw.html#PetscDrawBarDraw">PetscDrawBarDraw</A>() to display the updated graph.
<P>
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../Draw/PetscDrawLGCreate.html#PetscDrawLGCreate">PetscDrawLGCreate</A>(), <A HREF="../Draw/PetscDrawLG.html#PetscDrawLG">PetscDrawLG</A>, <A HREF="../Draw/PetscDrawSPCreate.html#PetscDrawSPCreate">PetscDrawSPCreate</A>(), <A HREF="../Draw/PetscDrawSP.html#PetscDrawSP">PetscDrawSP</A>, <A HREF="../Draw/PetscDrawHGCreate.html#PetscDrawHGCreate">PetscDrawHGCreate</A>(), <A HREF="../Draw/PetscDrawHG.html#PetscDrawHG">PetscDrawHG</A>, <A HREF="../Draw/PetscDrawBarDestroy.html#PetscDrawBarDestroy">PetscDrawBarDestroy</A>(), <A HREF="../Draw/PetscDrawBarSetData.html#PetscDrawBarSetData">PetscDrawBarSetData</A>(),
<BR><A HREF="../Draw/PetscDrawBar.html#PetscDrawBar">PetscDrawBar</A>, <A HREF="../Draw/PetscDrawBarDraw.html#PetscDrawBarDraw">PetscDrawBarDraw</A>(), <A HREF="../Draw/PetscDrawBarSave.html#PetscDrawBarSave">PetscDrawBarSave</A>(), <A HREF="../Draw/PetscDrawBarSetColor.html#PetscDrawBarSetColor">PetscDrawBarSetColor</A>(), <A HREF="../Draw/PetscDrawBarSort.html#PetscDrawBarSort">PetscDrawBarSort</A>(), <A HREF="../Draw/PetscDrawBarSetLimits.html#PetscDrawBarSetLimits">PetscDrawBarSetLimits</A>(), <A HREF="../Draw/PetscDrawBarGetAxis.html#PetscDrawBarGetAxis">PetscDrawBarGetAxis</A>(), <A HREF="../Draw/PetscDrawAxis.html#PetscDrawAxis">PetscDrawAxis</A>,
<A HREF="../Draw/PetscDrawBarGetDraw.html#PetscDrawBarGetDraw">PetscDrawBarGetDraw</A>(), <A HREF="../Draw/PetscDrawBarSetFromOptions.html#PetscDrawBarSetFromOptions">PetscDrawBarSetFromOptions</A>()
<P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/sys/classes/draw/utils/bars.c.html#PetscDrawBarCreate">src/sys/classes/draw/utils/bars.c</A>
<BR><A HREF="./index.html">Index of all Draw routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|