I work with this line layer:    The label is placed in the middle and i seek for a way to place it in the start\ end of the line. I search for that option in the placement tab in the properties but with no results.   I know that when i pan the map the label jump for the best location, but still i need to place the label in the start\ end of the line.  I try to find an option similar to the simple function in the ArcGIS:
120700
I am using the QGIS expression builder for the label properties of my data.  Is it possible to put different parts of the label in different coordinates on the map?  For instance I have a linestring and I would like to have "A" displayed in the beginning of the linestring and "B" in the end of it.
87685
I want to create offset/parallel lines for my centre lines (over 12000 polylines) in different distance for each class number(i have numbers in column) and with the same line direction as centre line.   My idea was to create mid point for each line and then move the line at the same angle but i don't know how to do it in Python.  Also i know the way creating line buffer, splitting buffer etc. but then lines are not in the same direction and ArcGIS Pro basic not support polygon to lines tools etc.   The problem is that I am using basic licence in ArcGIS Pro which not support advanced tools.   Is there any way to do it using Python script?     import arcpy  #setup inputs inFC = arcpy.GetParameterAsText(0)  outFC = arcpy.GetParameterAsText(2)   #setup output path fcPath = outFC.rpartition("\\")[0] fcName = outFC.rpartition("\\")[2]  if arcpy.Exists(outFC):     arcpy.Delete_management(outFC) arcpy.CreateFeatureclass_management(fcPath,fcName,"POLYLINE","#","DISABLED","DISABLED",inFC) arcpy.AddField_management(outFC,"inFID","LONG","#","#","#","#","NULLABLE","NON_REQUIRED","#")   def shift_features(inFC):     """     Shifts features by an x and/or y value. The shift values are in     the units of the inFC coordinate system.      Parameters:     inFC: string         An existing feature class or feature layer.  If using a         feature layer with a selection, only the selected features         will be modified.      x_shift: float         The distance the x coordinates will be shifted.      y_shift: float         The distance the y coordinates will be shifted.     """      with arcpy.da.UpdateCursor(inFC, ['SHAPE@XY', 'Shift_X_right', 'Shift_Y_right']) as cursor:         for row in cursor:             cursor.updateRow([[row[0][0] + (row[1] or 0),                                row[0][1] + (row[2] or 0)]])      return  outFC = shift_features(inFC)   I try to shift my lines using attribute stored inside my table. When i put normal x_shift value like 2 meters shift function work correctly. But when i try to call my table it creates error. I don't know if shift function support shifting by attribute table values. Can you help me?  UPDATE If that will help i got script that do the same us feature vertix to points.  # Feature Class to Points #  # Paul Smith (2012) paul@neoncs.com.au  # Imports  import arcpy import numpy  #Inputs from user parameters  InFc  = arcpy.GetParameterAsText(0)  OutFc = arcpy.GetParameterAsText(1)   # Spatial reference of input feature class  SR = arcpy.Describe(InFc).spatialReference  # Create NumPy array from input feature class  array = arcpy.da.FeatureClassToNumPyArray(InFc,["SHAPE@XY"], spatial_reference=SR, explode_to_points=True)  # Check array and Exit if no features found if array.size == 0: arcpy.AddError(InFc + " has no features.")  # Create a new points feature class else: arcpy.da.NumPyArrayToFeatureClass(array, OutFc, ['SHAPE@XY'], SR)
43159
If I type    \begin{enumerate}         \item        \begin{align*}         eqn 1         eqn 2       \end{align*}   \end{enumerate}   the label will appear on the first lines and the equations will appear on subsequent lines. How do I make it so that the equations begin on the same line as the enumerate label? Obviosly, I could manually adjust the location using \vspace and \rule, but is there a better way?
35277
I've been experimenting with orthographic projections and I've run into a problem with the labels.    I would like to label the countries but I want the labels to run west-east along the country which isn't (currently) an option in the QGis labeling options.  So, I know I can place them along a line but I lack the patience to draw a line in each country. So I'm looking for an automatic way to draw a line through the centroid of a polygon and to the edges so that I can use it as a label placement line.   By 'label placement line' I mean I need a line that crosses the country that I can use as the basis of my labels so that I can use follow line (parallel I think) in the labeling panel. (see for example this ). So they will be a straight horizontal line in EPSG:4326 but nicely curved in my orthographic projection (+proj=ortho +lat_0=51.470129 +lon_0=-0.452751 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs).  Ideally it would be a dense line so it curves when reprojected but I can always run a densify process on the output.
78693
I try to create a multiple lines label for this this polygon:     I red       and tried to use the "wordwrap" function with this expression:  wordwrap('high sensivtity area - red',10  )   and in the output preview (down the Expression string builder) it look fine and this is the result i'm seeking - but when i choose OK - nothing change in the map.  I don't want to use the option to put a space in the 'Wrap on character' section, because i don't want each word i separate line
26991
I have the following code that produces a line chart:  \begin{figure}[p]     \centering \begin{tikzpicture}     \begin{axis}[     use units,     cycle list name=exotic, %This defines the color. It produces nicer colors         width=15cm, height=8cm,     % size of the image         grid = major,         grid style={dashed, gray!30},         %xmode=log,log basis x=10,         %ymode=log,log basis y=10,         xmin=0,     % start the diagram at this x-coordinate         ymin=0,     % start the diagram at this y-coordinate         %/pgfplots/xtick={0,5,...,60}, % make steps of length 5         %extra x ticks={23},         %extra y ticks={0.507297},         axis background/.style={fill=white},         ylabel=Time,         xlabel=Number of Datapoints (n),         y unit=s,y unit prefix=m,         tick align=outside]        % import the correct data from a CSV file       \addplot table [col sep=comma,trim cells=true,y=Best Case (Ascending)] {datasets/time_mergesort.txt};           \addplot table [col sep=comma,trim cells=true,y=Average Case (Random)] {datasets/time_mergesort.txt};                     \addplot table [col sep=comma,trim cells=true,y=Worst Case (Descending)] {datasets/time_mergesort.txt};                      \legend{Ascending,Random,Descending}     \end{axis}  \end{tikzpicture}     \caption{Mergesort Run Time for Sorting Random Data}     \label{fig:merge_sort_from_csv} \end{figure}   And at the moment the legend appears on the chart on the upper right corner. I need to move that below the chart, or even to leave that on the chart but to move that on the upper left corner.   I have tried the solution mentioned at , but it did not work for me.  How can I move the axis in a different position?
87448
I'm wondering if there are some macros for annotating listings as below easily. They are primarily used in books from Manning.    Solution  For anyone who's interested, this is my macro I finally got:      \newcommand*{\AddNote}[5]{%     \begin{tikzpicture}[overlay, remember picture]     \coordinate (x) at (#2,0);     \coordinate (a) at ($(x)!(#1.north)!($(x)+(0,1)$)$);     \coordinate (b) at ($(a)+(0.8,0)$);     \coordinate (c) at ($(b)+(0,#3)$);     \draw [open triangle 45-] (a) -- (b) -- (c);     \node[#5] at (c) {\bf\sffamily\smaller#4};     \end{tikzpicture}%     }   Usage is: \AddNote{linemarker}{x-offset}{y-offset}{text}{style}
93294
I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the longest line (easily distinguishable visually) is not represented as a single line in the table, it is actually made up of many smaller lines. The lines appear to be touching, although they do not cross through each other.   How can I merge these lines and then determine the length of the longest line using ArcObjects or manual methods that I can convert to ArcObjects? An even better solution would involve getting rid of all of the tributaries and leaving me with just the river channel as a line.
87240
I would like to put something at the top of the \longrightarrow, something like \longrightarrow^{k\rightarrow\infty}. However, instead of putting k\rightarrow\infty on the top right corner, I would like to put it in the middle on the top of \longrightarrow. Could someone help me?
115185
This seems like it should be really easy but I can't seem to find it anywhere...  I'd like to be able to fine-tune the positioning of a node label.  I'm aware of the \node[label=above/below/etc:{label}] (x) {}; syntax, but that doesn't seem to give you many options on where the label goes. I'd like to be able to place the label slightly closer or farther away, or maybe in a direction other than the 8 presets available.  \tikz[label distance=x] isn't a good solution because I need it to be node-specific.
32369
I would like to align multiple points to a line, or lines within a layer, using a specified tolerance or buffer around the line objects. Please refer to the sample sketch attached.  For the sake of this example, the points closest to the line in the BEFORE picture are within 5 map units of the line, while the outermost points are over 10 map units away. I would like to snap the closest points onto the nearest line, using a tolerance of 5 map units to achieve the result in the AFTER picture.
105389
I am a beginner user of Illustrator and I like it a lot. I also like to make concept maps like this one:    I was wondering if there is a possibility to easily create and modify  ?   The problem is that if I draw this diagram in Illustrator:    and then I move the rectangle on the left then the line stays where it is :    What I would like is that the rectangles are associated to the endpoints of the lines so that when I move the left rectangle then the line moves with it like this:    I wonder if accomplishing such a simple task with such a powerful vector drawing application as Illustrator is possible or not ? I would hope it is possible but maybe I just don't know how. Could someone please help me out with this ?
130
Why does the use of \begingroup, \endgroup negate the effect of centering in the MWE? The MWE below yields a left aligned figure (not desired), with subsequent text on the left (desired):  But if I remove the \begingroup, \endgroup, then things work as desired as far as the \centering goes, but then the subsequent text is also centered?  Question:  I thought the entire purpose of grouping was to localize the effect. So, what is the subtlety of grouping that results in this behavior? How do I keep the grouping, yet also have the centering?  I would like to ensure that any settings that are changed via the inserted figure are kept local to that figure.  Code: \documentclass{article} \usepackage{showframe} \usepackage{pgfplots}  %\usepackage{filecontents}% Commented to prevent overwriting myFig.tex \begin{filecontents*}{myFig.tex}     \def\YLabel{$f(x) = x^2 - x +4$}     \begin{tikzpicture}     \begin{axis}[ xlabel=$x$, ylabel=\YLabel]         \addplot {x^2 - x +4};      \end{axis}     \end{tikzpicture} \end{filecontents*}  \newcommand*{\InsertFigure}[1]{%     \IfFileExists{#1}{%         \begingroup%             \centering%             \input{#1}%         \endgroup%     }{}% }%  \begin{document}     \InsertFigure{myFig.tex}  \textbf{Text on left.} \end{document}
13797
Is it possible to tell pgfplots to put tick labels between the tick marks instead of at the tick marks?  MWE:  \documentclass[margin=5pt]{standalone}  \usepackage{tikz} \usepackage{pgfplots}  \begin{document}      \begin{tikzpicture}          \begin{axis}[             width=5in,             height=3in,             axis lines=middle,             scaled ticks=false,             xtick=\empty,             xmin=0,             xmax=3,             extra x ticks={0,1,2,3},             extra x tick labels={low,high,med},         ]          \addplot [mark=*,draw] coordinates {(0.5,2) (1.5,4) (2.5,3)};          \end{axis}     \end{tikzpicture}  \end{document}   Result:    I can do it manually by adding  xticklabel style = {xshift=1.9cm,align=center},     but this seems unsatisfying, unreliable, and requires too much trial and error.
76582
I have a figure where one of my labels is very long. I would like this label to be split to two rows. Currently my code is like this  \documentclass{article}  \usepackage{pgfplots} \pgfplotsset{compat=1.10}  \begin{document}  \begin{tikzpicture} \pgfplotsset{width=10 cm} \begin{axis} [ symbolic x coords={0, Label 1, Label 2, This is a very very very long label, Label 4, Label 5, Label 6, Label 7,Label 8}, xtick={Label 1, Label 2, This is a very very very long label, Label 4, Label 5, Label 6, Label 7}, x tick label style={rotate=45, anchor=east, align=center}, axis lines*=left, ymajorgrids = true, legend style={at={(0.5,-0.30)},anchor=north}, ymin=0, ymax=175, bar width=5mm, ybar=-0.5cm,  enlarge x limits={abs=0.6cm}, nodes near coords,         every node near coord/.append style={color=black}, ] \addplot [red,fill=red]  coordinates{ (Label 1,100) (Label 2,90) (This is a very very very long label,80) (Label 4,140) } ; \addplot [blue,fill=blue] coordinates{ (Label 5,80) (Label 6,25) (Label 7,66) } ; \addlegendentry{Legend 1} \addlegendentry{Legend 2} \end{axis} \end{tikzpicture}  \end{document}   Which produces this:   Now if I try to change the x tick label style to be  x tick label style={rotate=45, anchor=east, align=center,text width=3.5cm}   This happens:   So the anchor=east command doesn't seem to go along with the text width command. Other anchor commands like anchor=west, anchor=base seem to be working perfectly normal. Does anyone know why the anchor east command doesn't seem to work with the text width command and is there a way to go around this?
111489
I have trouble defining a node on a path. If the path is described using points and the in/outgoing angle, the node is always at the beginning. If the path is described with control points, it works flawlessly.  In the code below you see that one path correctly has a node about midway, whereas for the second path the node will be placed at the start of the path.  \documentclass[border=5pt]{standalone}  \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{math,calc}  \usepackage{amsmath}  \begin{document} \begin{tikzpicture}     \draw (0,0) .. controls (1,2) and (4,3) .. (5,5)     node [pos=0.5] (mid1) {};     \draw[fill] (mid1) circle (1pt);      \draw (0,0) to[out=90, in=-180]  (5,5)     node [pos=0.5] (mid2) {};     \draw[fill] (mid2) circle (1pt); \end{tikzpicture} \end{document}   I have a path constructed as in the second example, how can a place a node at a specific relative position (2/3 in, say)?  I am also interested why tikz treads the two paths so differently and why "node [pos= ]" works in one of the cases, but not the other.
7122
How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).  Is there a way to make lines break automatically at some specified width?  And can I control the alignment of the text (left, right, centered, justified)?  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node {First line\\second line}; \end{tikzpicture} \end{document}