Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: leaveing out empty ticks that have no data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61100] Re: leaveing out empty ticks that have no data
  • From: Peter Pein <petsie at dordos.net>
  • Date: Mon, 10 Oct 2005 02:40:01 -0400 (EDT)
  • References: <diaasq$ici$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

kristoph schrieb:
> I am comparing data and superimpose barcharts so the effects can be
> visualised. Unfortunately the data is clustert, so lets say I have a
> lot of data at ticks 1-10 and no data at ticks 11-100 but than again
> data form 101-200. The image is very tiny and very very confusing. It
> would be nice if anyone knows a neat trick to have breaks in the x-axes
> form 15-90 and so on.
> Thanks for help.
> 
Hi Kristoph,

you might want to play with the AspectRatios, but I think


Block[{$DisplayFunction=#&},
     p1=Histogram[Table[10Random[],{1000}],AspectRatio\[Rule]1.3,
         PlotRange\[Rule]All];
     p2=Histogram[Table[100(1+Random[]),{1000}],AspectRatio\[Rule]1.3,
         Axes\[Rule]{True,False}]];

Show[Graphics[{Rectangle[{0,0},{1/2,1},p1],Rectangle[{1/2,0},{1,1},p2],Blue,
         Line[{{1/2,0},{1/2,1}}]}],ImageSize\[Rule]500];

is a starting point.

Peter


  • Prev by Date: Re: Dashing shown in legend?
  • Next by Date: Re: Sundry Questions
  • Previous by thread: leaveing out empty ticks that have no data
  • Next by thread: Language vs. Library