DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Giving multiple graphs the same box size

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
Steve Railsback



Joined: 30 Nov 2018
Posts: 1

PostPosted: Fri Nov 30, 2018 10:55 am    Post subject: Giving multiple graphs the same box size Reply with quote

Hi- I have not found a way to create 2 or more graphs that have the same (a) size of the axis box and (b) font size. This is important for publication, when you need to make a single figure out of several graphs placed one above the other, aligned by the Y axes so that the X axis labels on the bottom plot align with the X axis tick marks on the plot above it.

The problem is when the Y axis labels are different sizes: for example if the bottom plot Y values range from 0 to 10 and the top plot values range from 0 to 100,000. When you set the size of a plot, DPlot adjusts the axes so that the whole plot, including axis labels, fits that size. So when the Y axis labels of two plots are different sizes, the plot boxes are no longer the same size. To make the axes align, you must shrink one of the plots, which gives it a different font size, which is unacceptable.

What I often need is to specify the size of the box defined by the two axes, so that multiple plots can be aligned by their axes while having the same font size, even though the total plot area will differ. Is there a way to do this? If not, it would be extremely helpful.

Steve R.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Nov 30, 2018 11:47 am    Post subject: Reply with quote

"Specify plot size" dimensions ARE the size of the box around the plot in your example. The trouble is that each entire plot will be centered within the page margins, so the plots don't line up.

I don't have an easy fix for this, sorry. I'll have to think on it a bit.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Nov 30, 2018 2:39 pm    Post subject: Reply with quote

By the way the font sizes should definitely be the same (assuming they're the same in both plots). If they aren't, it is because the "larger" plot - the one with 100,000 on the Y axis - won't fit within the specified margins and everything including font sizes is scaled down.

You might want to check your margins. This will not, however, fix the alignment problem. The only way I can see to do this at present is Copy/Paste into Word, manually align the plots, then save as PDF. Which I understand is a lot more effort than you're looking for.

Another way (which may be even less satisfactory) is to use the Multiple Axes option on both plots and duplicate the left Y axis on the right, with C=0, D=1. Now the plots will line up:


_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bercic



Joined: 17 May 2004
Posts: 27
Location: Slovenia

PostPosted: Sat Jan 22, 2022 2:28 pm    Post subject: Reply with quote

The only options, if acceptable, is to use scientific notation for Y-axis.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group