I am plotting a simple linear function. The plot looks fine, but I want to extend the function up to x=7. Anyone knows, please how to do that?  My code is the following:  \usepackage{tikz} %for drawings \usetikzlibrary{shapes} \usetikzlibrary{arrows} \usetikzlibrary{calc} \usepackage{pgfplots} \usepackage{tkz-fct} %for functions   \begin{figure}%[H] \centering                                              \begin{tikzpicture}     \begin{axis}[width=400pt,axis x line=center, axis y line=center, ylabel={$n$},xlabel={$x$},xmin=-2,xmax=8,ymin=-2,ymax=8]         \addplot+[mark=yes] (\x,{5-0.8*\x});         \end{axis} \end{tikzpicture} \caption{Effect of the parameter $n$ on the particle nodes scaling} \label{fn1} \end{figure}
Why does pgfplots plot functions only until x = 5 and y = 5, but not any further?    \documentclass{article}  \usepackage{tikz} \usepackage{pgfplots}  %%%&lt; \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt} %%%&gt;  \begin{document} \begin{tikzpicture} \begin{axis}[samples=100,ymin=0,ymax=10,xmin=0,xmax=20]  \addplot [thick] plot  (\x,  {1/(1 + exp(-0.6*(\x - 12)))}); \addplot plot (\x, {\x});  \end{axis} \end{tikzpicture} \end{document}
How do I remove hidden backup files? I have files ending in ~ in my home directory, and I want to delete them. How do I do that? How do I prevent this backup functionality? Can I use a HDD on my PS3 if I have already used another on the same console? I'm thinking of changing the Hard Disk of my PS3 (Slim 120GB), but I am unsure of what will happen to the data on the one I previously had if I do this:   PS3 has some data in the HDD. I turn off PS3, change HDD, install OS on new HDD. I download some data on new HDD from PS Plus.   Let's imagine I forgot to back something up...   I turn PS3 off, change HDD back.   Can I still use the old hard drive without needing to format it again? "named" vs "that is named" Proof concerning Stirling numbers of the first kind How do I show that   $${ n\brack 2} = \frac{n!}{2} \sum_{m=1}^{n-1} \frac{1}{m(n-m)}$$  using a combinatorial argument?  My definition of ${n \brack 2}$ is "the number of elements of $S_n$ which can be decomposed as the product of exactly $2$ disjoint cycles". Since  from other SE sites and is not thought to point out a lack of quality or helpfulness, but only to express agreement or disagreement, I'm wondering why downvoted answers here on meta are shown semi-transparent.  Shouldn't they be non-transparent then (like upvoted answers)?  Or am I missing something? I am trying to read a custom (non-standard) CSS property, set in a stylesheet (not the inline style attribute) and get its value. Take this CSS for example:  #someElement {   foo: 'bar'; }   I have managed to get its value with the currentStyle property in IE7:  var element = document.getElementById('someElement'); var val = element.currentStyle.foo;   But currentStyle is MS-specific. So I tried getComputedStyle() in Firefox 3 and Safari 3:  var val = getComputedStyle(element,null).foo;   ...and it returns undefined. Does anyone know a cross-browser way of retreiving a custom CSS property value?  (As you might have noticed, this isn't valid CSS. But it should work as long as the value follows the correct syntax. A better property name would be "-myNameSpace-foo" or something.) Exclude bounties from affecting privileges Can I set up a Mac for a multi head / multi user environment? How to compare two TeX codes and mark differences with color I would like to find easy tool, which compares two TeX codes and generates a PDF file of the first code, in which the differences from the second code are marked by a given color. I use winedt 7.0 under windows 7.  I just noticed that latexdiff provides what I need. As far as I understand it is included in Miktex. Is there an interface (menu commands) in winedt 7.0, which allow to work with latexdiff ? ASP.NET MVC - Can't bind array to view model Suppose $G$ is a non-abelian group and $H,K$ are two abelian subgroups of $G$. Then must $HK$ be an abelian subgroup of $G$?  I know an example, but I am confused. Thus I just want to check that. I have a char array buffer that I am using to store characters that the user will input one by one.  My code below works but has a few glitches that I can't figure out:   when I execute a printf to see what's in Buffer, it does fill up but I get garbage characters at the end it won't stop at 8 characters despite being declared as char Buffer[8];   Can somebody please explain to me what is going on and perhaps how I could fix this? Thanks.  char Buffer[8]; //holds the byte stream int i=0;  if (/* user input event has occurred */)  {         Buffer[i] = charInput;         i++;          // Display a response to input         printf("Buffer is %s!\n", Buffer);  }   Output:   tagBuffer is 1┬┬w! tagBuffer is 12┬w! tagBuffer is 123w! tagBuffer is 1234! tagBuffer is 12345! tagBuffer is 123456=! tagBuffer is 1234567! tagBuffer is 12345678!  tagBuffer is 123456789! Redirect www to non-www using Apache htaccess does not work I'm looking to create a simple short-lived reservation system, and I'd like to generate confirmation numbers that are   unique random-looking alphanumeric short-ish, at least much shorter than 32 character-long strings returned by sha1   I'm only looking to have ~500 reservations, so I don't imagine high likelyhood of collissions.  One idea I had is generate an sha1 hash based on a date-time stamp and username, then truncating it to its first 10 characters.  Would something like that be reliably unique enough for the purposes of processing ~500 reservations? On my homepage, I'm using this method to hide my email from spam bots:  &lt;a href="admin [at] example.com"    rel="nofollow"    onclick="this.href='mailto:' + 'admin' + '@' + 'example.com'"&gt;Contact me&lt;/a&gt;   What do you think about it? Is it effective? What other methods do you know or use? An annulus in $\mathbb R^2$ is path connected Let $A = \{(x,y) \in\mathbb{R}^2: a \leq (x-c)^2+(y-d)^2 \leq b\}$ for given $a,b,c, d$ real numbers. I want to show that $A$ is path-connected.  How can I do that?  I know that every open subset of $\mathbb R^2$ that is connected is path connected. But this is obviously not open so I cannot use that. Then I thought of multiple cases. If we take arbitrary $x$ and $y$ and draw the line between them and they do not intersect with the circle centred at $(c,d)$ then we can obviously draw a line between the points which is still in the set, so we can then define the function. I am stuck on the other case. Using Squeeze Theorem to show the following limits Consider a function f (x) defined on R satisfying:   for all x distinct 0.  Calculate: lim f(x) with x→∞ and limf(x) with x→−∞   Issue information:   if x → ∞ then we can consider | x | = x  if x → -∞ then we can consider | x | = -x  I can use x² = | x |? X,Y,Z missing in F3 ''will'' or ''going to'' Is vocative comma rule vanishing?