[reportlab-users] where can I find "dataSample5" refernced on pg. 58 of graphics reference

Andy Robinson reportlab-users@reportlab.com
Sat, 24 Aug 2002 12:04:46 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C24B66.70362820
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

The graphics reference includes real code snippets, but isn't smart enough
to find previous definitions.

Bar chart data is alwas a 2d array; lists or tuples, it does not matter.  In
this case,
    dataSample5 = [(10, 60), (20, 50), (30, 40), (40, 30)]

In general, if you want to know more about an example, grep for function
name;
this one is in the module reportlab/graphics/charts/barcharts.py, and
dataSample5
is defined just above.

Best Regards

Andy Robinson
  -----Original Message-----
  From: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com]On Behalf Of Pat Johnson
  Sent: 23 August 2002 17:51
  To: reportlab-users@reportlab.com
  Subject: [reportlab-users] where can I find "dataSample5" refernced on pg.
58 of graphics reference


  I'm trying very hard to understand python and reportlab without bothering
anyone.  The example on page 58 from the graphics reference has a line "data
= dataSample5".  Where can I find dataSample5 to study.  I'm trying to
figure out how to import data from a text file and assign it to the data
variable.  I'm hoping dataSample5 will enlighten me.

  If you take pity on me, please send any info to me at
patricia.johnson@fmr.com

  Thank you all.

------=_NextPart_000_0004_01C24B66.70362820
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2479.6" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
graphics reference includes real code snippets, but isn't smart=20
enough</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>to=20
find previous definitions.</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>Bar=20
chart data is alwas a 2d array; lists or tuples, it does not =
matter.&nbsp; In=20
this case, </FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp; dataSample5 =3D [(10, 60), (20, 50), (30, =
40), (40,=20
30)]</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>In=20
general, if you want to know more about an example, grep for function=20
name;&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>this=20
one is</FONT></SPAN><SPAN class=3D040324910-24082002><FONT face=3DArial=20
color=3D#0000ff size=3D2>&nbsp;in the&nbsp;</FONT></SPAN><SPAN=20
class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>module=20
reportlab/graphics/charts/barcharts.py, and =
dataSample5</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>is=20
defined just above.</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>Best=20
Regards</FONT></SPAN></DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D040324910-24082002><FONT face=3DArial color=3D#0000ff =
size=3D2>Andy=20
Robinson</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  reportlab-users-admin@reportlab.com=20
  [mailto:reportlab-users-admin@reportlab.com]<B>On Behalf Of </B>Pat=20
  Johnson<BR><B>Sent:</B> 23 August 2002 17:51<BR><B>To:</B>=20
  reportlab-users@reportlab.com<BR><B>Subject:</B> [reportlab-users] =
where can I=20
  find "dataSample5" refernced on pg. 58 of graphics=20
  reference<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I'm trying very hard to understand =
python and=20
  reportlab without bothering anyone.&nbsp; The example on page 58 from =
the=20
  graphics reference has a line "data =3D dataSample5".&nbsp; Where can =
I find=20
  dataSample5 to study.&nbsp; I'm trying to figure out how to import =
data from a=20
  text file and assign it to the data variable.&nbsp; I'm hoping =
dataSample5=20
  will enlighten me.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>If you take pity on me, please send =
any info to=20
  me at patricia.johnson@fmr.com</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thank you=20
all.</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0004_01C24B66.70362820--