Dear Stata Experts,
I have a following code, which produces graphs that are being saved in .tif format. However on y-axis the graphs sometimes are too wide.
Does anyone have an idea, why?
The lines are some global macros (${function_`...'} in form y = ....

Some output is more convenient, but still a lot of useless space being shown.

I understand that one can define y-axis range, but still why are the graphs by default so wide (starting from 40 to 100, instead of around 70 to 100)?
Thank you for any support in this topic.
Sincerely,
Pavlo
I have a following code, which produces graphs that are being saved in .tif format. However on y-axis the graphs sometimes are too wide.
Does anyone have an idea, why?
Code:
capture noisily twoway ///
(scatter MM_TP TP [aw = total_SalesRevenue_EUR_per_Year] if groups_TP == `i' & PricingCategory_short == "`v'" & TP <= `m_max', title("`Identifier_graph' `v'", color(maroon)) ytitle(Material Margin (%)) mcolor(navy) msymbol(circle_hollow) leg(off)) ///
(scatter MM_TP TP if groups_TP_TP == `i' & total_SalesRevenue_EUR_per_Year == 0 & PricingCategory_short == "`v'" & TP <= `m_max', msize(tiny) mcolor(navy) msymbol(circle)) ///
(${function_`v'}, range (`m_1_`v'' `m_2_`v'') lpattern(dash) lcolor(white)) || (${function_`v'_1}, range (`m_min' `m_1_`v'') lpattern(dash) lcolor(white)) || (${function_`v'_2}, range (`m_2_`v'' `m_max') lpattern(dash) lcolor(white)) ///
(${function_`a'}, range (`m_1_`a'' `m_2_`a'') lcolor(maroon)) || (${function_`a'_1}, range (`m_min' `m_1_`a'') lcolor(maroon)) || (${function_`a'_2}, range (`m_2_`a'' `m_max') lcolor(maroon)) ///
(${function_`b'}, range (`m_1_`b'' `m_2_`b'') lcolor(maroon)) || (${function_`b'_1}, range (`m_min' `m_1_`b'') lcolor(maroon)) || (${function_`b'_2}, range (`m_2_`b'' `m_max') lcolor(maroon))
graph export "${directory}/Output Data/Main regression graphs/MM/`g'/`v'/g_`Identifier_graph'.tif", replace
Some output is more convenient, but still a lot of useless space being shown.
I understand that one can define y-axis range, but still why are the graphs by default so wide (starting from 40 to 100, instead of around 70 to 100)?
Thank you for any support in this topic.
Sincerely,
Pavlo

Comment