How do I draw a vertical line in a pgfplots plot
Plot x=3 in PGFPlots
PGFPlots: Understanding how to draw plots on different layers and arrange them I have gone through previous questions [,,], but I still couldn't figure out how to draw plots on different layers and change their order of drawing.  For this MWE, I would be grateful if I could figure out how to change the order of appearance of the three plots in such a way that the legend entries have the same order while keeping the plots commands/definitions in the same order as much as possible.  \RequirePackage{luatex85} \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest}  \begin{document}  \begin{tikzpicture}     \begin{axis}[             legend style={                 at={([yshift=30pt]0.5,1)},                 anchor=north},             legend columns=-1,             xmin=0, xmax=10,             ymin=0, ymax=10,         ]         %         \addplot [red,      line width = 5pt,   domain=0:10]    {x}; \addlegendentry{$x$}            \addplot [black,    line width = 5pt,   domain=0:10]    {(x-5)^2}; \addlegendentry{$(x-5)^2$}         \addplot [yellow,   line width = 5pt,   domain=0:10]    {10-(x-5)^2}; \addlegendentry{$10-(x-5)^2$}     \end{axis} \end{tikzpicture}  \end{document} Can anyone show me how to find invertible elements in $\mathbb{Z}/m\mathbb{Z}$, $m$ is say $28$?  Also I'm not very clear about what it mean by 'invertible element in $\mathbb{Z}/m\mathbb{Z}$' Expected number of rolling a pair of dice to generate all possible sums A pair of dice is rolled repeatedly until each outcome (2 through 12) has occurred at least once. What is the expected number of rolls necessary for this to occur?  Notes: This is not very deep conceptually, but because of the unequal probabilities for the outcomes, it seems that the calculations involved are terribly messy.  It must have been done already (dice have been studied for centuries!) but I can't find a discussion in any book, or on line. Can anybody give a reference? Macro with lstlisting inside I have been following  about using \NewDocuentCommand with lstlisting and the accepted answer is nice except it is too big and it doesn't quite work for me.   I came up with this example to test xparse:    \documentclass{article} \usepackage{xparse} \usepackage{listings}  \ExplSyntaxOn \NewDocumentCommand{\code}{m +v}{     \begin{lstlisting}[style=#1,numbers=none,xleftmargin=0.35cm,framesep=0mm]         #2     \end{lstlisting} } \ExplSyntaxOff  \begin{document}  \code{C}{ int x = 200; unsigned int y = 0; }  \end{document}   Like stated in the  I first used m as a normal parameter and then +v as a multiline verbatim parameter, but it fails. It looks like I am still missing something... Full width image in beamer? I have installed QGIS3 from the AUR package, as well as all optional dependencies:   However, when launching, I receive the following error:  Couldn't load plugin 'processing'   ModuleNotFoundError: No module named 'osgeo'  Traceback (most recent call last):   File "/usr/share/qgis/python/qgis/utils.py", line 311, in loadPlugin     __import__(packageName)   File "/usr/share/qgis/python/qgis/utils.py", line 664, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/usr/share/qgis/python/plugins/processing/__init__.py", line 28, in      from processing.tools.dataobjects import *          # NOQA   File "/usr/share/qgis/python/qgis/utils.py", line 664, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/usr/share/qgis/python/plugins/processing/tools/dataobjects.py", line 51, in      from processing.algs.gdal.GdalUtils import GdalUtils   File "/usr/share/qgis/python/qgis/utils.py", line 664, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 35, in      from osgeo import gdal   File "/usr/share/qgis/python/qgis/utils.py", line 664, in _import     mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'osgeo'   Python version: 3.6.4 (default, Jan  5 2018, 02:35:40) [GCC 7.2.1 20171224]  QGIS version: 3.0.0-Girona Girona, exported   Python Path: /usr/share/qgis/python /home/thiago/.local/share/QGIS/QGIS3/profiles/default/python /home/thiago/.local/share/QGIS/QGIS3/profiles/default/python/plugins /usr/share/qgis/python/plugins /usr/lib/python36.zip /usr/lib/python3.6 /usr/lib/python3.6/lib-dynload /usr/lib/python3.6/site-packages /home/thiago/.local/share/QGIS/QGIS3/profiles/default/python   It seems to be a path issue, but I am not sure how to solve it. Pacman shows gdal and python-gdal both as installed. Can all fundamental forces be fictitious forces? match first column of file a with paragraphs of file b I have 2 files. The first, fileA looks like  TCONS_00000066  XLOC_000030     -       u       q1:XLOC_000030|TCONS_00000066|0|0.000000|0.000000|0.000000|0.000000|- TCONS_00000130  XLOC_000057     -       u       q1:XLOC_000057|TCONS_00000130|0|0.000000|0.000000|0.000000|0.000000|- TCONS_00000395  XLOC_000206     -       u       q1:XLOC_000204|TCONS_00000393|0|0.000000|0.000000|0.000000|0.000000|-   FileB looks like:  &gt;TCONS_00000001 gene=XLOC_000001 AGATGAGCTGGTGGGGATGCTCTAAGAGAACGAGAGAAGCACAGAGCAGATAAACCACACCCACAGGCAC CACCGTCCTTGTTGGTAATGAAGAAGACGAGACGACGACTTCCCCACTAGGAAACACGACGGAGGCGGAG ATGATCGACGGCGGAGAGAGCTACAGAAACATCGATGCCTCCTGTCCAATCCCCCCATCCCATTCGGTAG TTGGATTGAAGACTACCGAATAAGAGAAGCAGGCAGGCAGACAAACCCTTGAACCAAGGAGTCCTCGCTG AGGAAGCTTTGGATCCACGACGCAGCTATGGCCTCCCCGCCCACCAGGCCGCCAGCCACAACCAGCTGAC TAGGTCGCATGCATCATCAGATTTCAATCTCCCTTCGTTCCCTGTCCCTAATCCAATACCAATAGGGAGC AATCAGCTGCTCCTCGACGGCGAGGGAGATGTCGTCGGCCGCGGGCCAAGACAACGGAGATACCGCTGGG GACTACATCAAGTGGATGTGCGGCGCCGGTGGCCGTGCGGGCGGCGCCATGGCCAACCTCCAGCGCGGCG TTGGCTCCCTCGTCCGTGACATTGGCGACCCCTGCCTCAACCCATCCCCCGTTAAGGGGAGCAAAATGCT CAAACCGGAAAAATGGCACACATGTTTTGATAATGATGGAAAGGTCATAGGTTTCCGTAAAGCCCTAAAA TTCATTGTCTTAGGGGGTGTGGATCCCACTATTCGAGCTGAAGTTTGGGAATTTCTTCTTGGCTGCTATG CCTTGAGTAGTACCTCAGAGTATAGGAGGAAACTAAGAGCTGTTAGAAGGGAAAAATATCAAATTTTAGT TAGACAGTGCCAGAGCATGCACCCAAGCATTGGTACAGGTGAGCTTGCTTACGCTGTTGGATCAAAGCTA   Now, fileA contains selected transcript numbers in the first column and fileB contains sequences of all transcripts. I want to scan fileB for the first column of fileA and print the trailing sequences of matching transcripts along with the transcript number. Execute vs Read bit. How do directory permissions in Linux work? Recently my audio input, from USB headset and USB guitar cable have stopped working. Going into Windows 'Sounds' and enabling 'Listen to this device' outputs the audio as expected; the problem is not with the devices. However, as soon as I try to use them with any other program, discord, for example, no audio input is detected by discord.  I have tried everything I can think of and some suggestions from Googling around;   Updating everything - windows, drivers, all related software Rolling windows back to the last build Trying different USB ports Reinstalling drivers and software Running Windows troubleshooters Playing with device properties settings   But nothing seems to work, any suggestions? How can I prevent false score reports to global highscore tables? Browser and mobile games commonly have global highscore tables. It's also common for those tables to contain scores of 2,147,483,647 &mdash; where people have figured out the webservice call that reports scores and used it to record a fictitious score.  For simple puzzle games, we can defend against this by including a record of every move the player made (and any random seeds used to generate the level) with the score-reporting call. The entire game can then be reproduced and verified on the server.  However, this quickly becomes infeasible for anything larger than Pac-man.  How else can cheating of this kind be prevented? The gravitational force on your body, called your weight, pushes you down onto the floor. $$W=mg$$ So, what is the weight equation through general relativity? Extract current viewing parameters from a 3D view? Say a creature owns multiple items with wording similar to this:  As an Action, you may speak the command word to [...]  Say the creature has deliberately obtained such items, perhaps by creating them itself, to have the same command word. Can this creature use one action to speak the shared command word and activate multiple items at once? The purpose of this question is not to cheese my DM. I am writing a short story and like to keep my D&amp;D fiction as close to rules-accurate as possible. Is my phone liable to explode if I charge it with a charger that came with a different phone? Correct tracked camera orientation I have been playing around with camera tracking and I'm happy enough with the tracking and alignment of the markers with the footage when viewed through the camera.    The problem is, when I am not looking through the camera I can see that the grid isn't aligned to the camera.    How do you correctly align the grid to this tracked camera? I have set a floor and two points for scale, also clicked setup tracking scene, but this just added cube and plane which were on the grid. WinForms Global Exception Handling? Is Ubuntu an open source software? Is Ubuntu an open source software (OSS)? trigger AccountReplicate on Account (after delete, after insert, after update) {     if ( trigger.isInsert ) {         for ( Account acc : trigger.new ) {             AccountOne__c ac = new AccountOne__c();             ac.Fax__c = acc.Fax;             ac.Phone__c = acc.Phone;             ac.Name =acc.Name;             insert ac;         }     }      if ( trigger.isUpdate ) {         integer  i = 0;         list&lt;AccountOne__c&gt; a2 = new list&lt;AccountOne__c&gt;([SELECT Id                                                         FROM AccountOne__c                                                         WHERE Name =: trigger.old[i].Name ]);         for ( AccountOne__c c1 : a2 ) {             c1.Name = trigger.new[i].name;             c1.Fax__C = trigger.new[i].Fax;             c1.Phone__C = trigger.new[i].Phone;             i++;         }         update a2;     } }   I tried bulk trigger for the update operation, but it's not working can anyone help me? Unstable wifi with intel 8260 [8086:24f3] (rev 3a) on Ubuntu 16.04 running on Lenovo P50