Controling left margin when dealing with tikz picture, or better yet - centering tikz picture properly
Center figure that is wider than \textwidth
A Tweedie distribution can model skewed data with a point mass at zero when the parameter $p$ (exponent in the mean-variance relationship) is between 1 and 2.   Similarly a zero-inflated (whether otherwise continuous or discrete) model may have a large number of zeros.  I'm having trouble understanding why it is that when I do prediction or calculate fitted values with these kinds of models, all of the predicted values are non-zero.  Can these models actually predict exact zeros?  For example  library(tweedie) library(statmod) # generate data y &lt;- rtweedie( 100, xi=1.3, mu=1, phi=1)  # xi=p x &lt;- y+rnorm( length(y), 0, 0.2) # estimate p out &lt;- tweedie.profile( y~1, p.vec=seq(1.1, 1.9, length=9)) # fit glm fit &lt;- glm( y ~ x, family=tweedie(var.power=out$p.max, link.power=0)) # predict pred &lt;- predict.glm(fit, newdata=data.frame(x=x), type="response")   pred now does not contain any zeros.  I thought the usefulness of models such as the Tweedie distribution comes from its ability to predict exact zeros and the continuous part.  I know that in my example the variable x is not very predictive. Counting number of subsets which contain a specific element There is a set $x = \{A,B,C,D,E,F,G\}$ and the question ask for counting the number of subsets which contain $D$. And the answer is $2^6$. why would it be $2^6$? I know the total number of subsets is $2^{|x|}$ is it realated? Is there a word for the sadness over "What might have been"? If every polynomial of degree 2 is reducible then $K$ is algebraically closed? Axiom of Choice: Family of non-empty sets mutually disjoint or not? pgfplots: percentages and endvalues in stacked ybar I have two questions regarding the pgfplots package. I have attached the source code I worked on. There are two features I am not able to realize:   I would like to put the total value (sum of the whole stacked bar) on top of the bar, rotated by 90°. For me, it was only possible yet to get the value of each part of the stacked bar by using the nodes near coords command. Additionally, the percentage of each part of the stacked bar as relative to the whole stacked bar should be displayed in the bar, also rotated by 90° (addition equals 100%)   If it is somehow possible, percentages should have only one significant digit, and those below 5% should not be displayed in the bar. I know this is a pretty complex example, but maybe there is one who can solve it.  \documentclass{article}  \usepackage{pgfplots,pgfplotstable}   \usetikzlibrary{pgfplots.groupplots}    \pgfplotsset{compat=1.8}   \pgfplotstableread{  Criterion  ddd     ccc     vvv   (0)    700         750         750   (a)    700         750         750   (b)        1200        750         750       (c)    33      345     345  (d)    34      333     345  (e)    234     344     344   }\Rob   \pgfplotstableread{  Criterion  ddd     ccc     vvv   0      70          75          75    a      70          75          75    b          120         75      75        c      3       34      34  d      3       33      34  e      23      34      34  }\Gab   \begin{document}  \begin{tikzpicture} \begin{groupplot}[group style= {     columns=2,xlabels at=edge bottom,     ylabels at=edge left,     horizontal sep=1cm,group name=plots, }, ymin=0, enlarge x limits={abs=.5}, enlarge y limits={upper,value=0.4},  ylabel=Mon, ylabel style={text height=0.02\textwidth,inner ysep=0pt},  ybar,ybar stacked, major x tick style = transparent,  /pgf/bar shift=0pt, /pgf/bar width=9pt, x tick label style={text height=2ex},    xlabel style={yshift=-2ex},  xticklabels from table={\Rob}{Criterion},  xtick=data,legend columns=-1, legend style={draw=none, /tikz/every even column/.append   style={column sep=5pt}}]  \nextgroupplot[xlabel=Rob, xlabel shift = -7.5cm, legend to name=grouplegend] \pgfplotstableforeachcolumn\Rob\as\col{     \ifnum\pgfplotstablecol=0      \else       \edef\tmp{         \noexpand\addplot table [x expr=\noexpand\coordindex,y=\col] {\noexpand\Rob};         \noexpand\addlegendentry {\col}     }     \tmp     \fi }  \nextgroupplot[xlabel=Gab, xlabel shift = -7.5cm] \pgfplotstableforeachcolumn\Gab\as\col{     \ifnum\pgfplotstablecol=0      \else     \edef\tmp{         \noexpand\addplot table [x expr=\noexpand\coordindex,y=\col] {\noexpand\Gab};     }     \tmp     \fi   }   \end{groupplot}  \draw[dashed] (plots c1r1.south west) -- ++(0,-1.5);   \draw[dashed] (plots c1r1.south east) -- ++(0,-1.5);  \draw[dashed] (plots c2r1.south west) -- ++(0,-1.5);  \draw[dashed] (plots c2r1.south east) -- ++(0,-1.5);  \node at (plots c1r1.south) [inner sep=0pt,anchor=north, yshift=-12ex]     {\ref{grouplegend}};  \end{tikzpicture}  \end{document} Cartoon in a world with magic stones wielded by four children which combine to become stronger, and can summon creatures Can you please help me find this animated show? There is a four member team with two boys and two girls. The boys can summon, with their stones, a rock golem (black wearing summoner) and a robot (orange wearing summoner). The two girls can summon something like a dragonfly (green wearing summoner, little girl) and the blue girl, I don't remember what she can summon.  I don't know where the animated show comes from.  By throwing the stone, they activate the stone's power. Each stone has different characters on it. When you don't match them correctly, you get a rebound effect. Can helium disappear from Earth? Helium is lighter than air, so it should fly off from Earth. Is it possible that in the future we will run out helium? Why do we need to be root in terminal for shutdown and restart? Is it purely a 'gotta-have-them-all' mindset, or do they actually serve some purpose?  I notice that you are able to sell them on a community market. For a test I listed one, and someone bought it for 50p. Not exactly a huge amount, but I don't understand why someone would spend real money on them.  Am I missing something?   Are they redeemable for games or money off vouchers or something 'tangible' that I'm missing? Does payment in goods count as "income" for tax purposes? Can someone help me elucidate the definition of "income" from a tax perspective? More specifically, if Joe is paid for his work in avocados instead of dollars, then would Joe be exempt from paying any income tax for the year? Or would the value of avocados earned for the year be translated into dollars which would then be considered Joe's annual income? If so, what guidelines would one use to make this translation? (Make the assumption that Joe does not sell the avocados (for dollars) at a later date and either eats them or trades them for other real property)  What if he was paid in gold instead of avocados? I tried to compile a (flawlessly working) LaTeX document on a different computer, and suddenly was faced with the above error message printed by the xparse package (after that, many errors follow).  I'm working on both computers with miktex 2.9 (and Texnic-Center) on Windows 7 (64 bit).  I tried EVERYTHING I found on stackexchange or anywhere else on the web, including:   Updating all packages Removing the l3 packages and reinstalling them Doing the above for both the current user and in admin mode Removing the complete miktex distribution and re-installing it   for only the current user for "anyone who uses this computer" with all packages only the basic packages  Downloading the newest l3 packages manually from CTAN and copying them into the miktex folder Refreshing the FNDB and updating formats afterwards   Nothing worked. Right now, I'm just out of ideas. ANY suggestions??  EDIT: After performing UlrikeFischer's suggestion, I get different errors. After a long compilation process, this is the log file I get: To find minimum distance between two curves How to cancel a jquery.load()? Website display problem - across all browsers whenever I go to  or  the page loads like this:    How can I fix this? My prisoners wont move from the holding to cell to the actual cell I have a cell block with 25 cells but none of my prisoners will move there from the holding cell. I have working power and water beds and toilets they are separate from each other it has all the requirements why wont it work? Any ideas? Accidentally ejected External drive while downloading file, now having problems reading Is there a universal way to turn Windows 7 Aero desktop, all windows, etc into grayscale? I had an option to do this in Intel video drivers on my old laptop, now I have NVIDIA and don't know how to replicate this effect.   There might be a shader or filter that would cause Aero to render stuff into grayscale, but I was unable to find anything. Or must it be explicitly supported by video driver as a bonus? LWC Get Pick-list Field Values In LWC, is it possible to get a pick-list field's possible values?  I'm writing a component that is embded into a lightning record page. I need my component to be able to load the record from the page, get data from the fields and use that data to pre-populate my search form with default values.  I have this working with city/state and checkbox fields. Right now the city/state fields are built pull data from an aggregate query of contacts to find all possible state/city combinations (I know this is doomed to fail when the records reach over 50k contacts but Its good enough for now).  I have a pick-list field on my object called skill level, I need to be able to build a combo box that has all the possible values for skill level and set the default value to the value on the associated record.  I'd like to avoid hard-coding the available options if possible.  In LWC, is it possible to get a pick-list field's possible values? Storing C++ template function definitions in a .CPP file I have some template code that I would prefer to have stored in a CPP file instead of inline in the header.  I know this can be done as long as you know which template types will be used.  For example:  .h file  class foo { public:     template &lt;typename T&gt;     void do(const T&amp; t); };   .cpp file  template &lt;typename T&gt; void foo::do(const T&amp; t) {     // Do something with t }  template void foo::do&lt;int&gt;(const int&amp;); template void foo::do&lt;std::string&gt;(const std::string&amp;);   Note the last two lines - the foo::do template function is only used with ints and std::strings, so those definitions mean the app will link.  My question is - is this a nasty hack or will this work with other compilers/linkers? I am only using this code with VS2008 at the moment but will be wanting to port to other environments.