Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I ecnouder a strange issue with a couple of my plots. The axis labels appear out of place as you can see in the following image.

axis label out of place image

I tries setting up a minimum example with the exact same tikzpicture code but there it appears correctly. I'm also giving you the minimum example (sorry for the amount of data, I just wanted to give it as it is).

\documentclass{article}

\usepackage{lipsum}
\usepackage[table,usenames,dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage{tikz,pgfplots}
\usetikzlibrary{shapes,arrows,fit,calc,positioning}

\begin{document}
\definecolor{mycolor2}{rgb}{0.75,0,0.75}

\lipsum


\begin{figure}[h!]
  \centering
  \scalebox{0.7}{
\begin{tikzpicture}
      \begin{axis}[%
      width=4.52083333333333in,
      height=3.565625in,
      scale only axis,
      xtick={0,50,...,300},
      ytick={0,10,...,100},
      ymin=40,
      axis lines=left,
      compat=newest,
      axis x line=middle,
      legend columns=3,
      xlabel=\tiny{time (m)},
      axis y line=middle,
      ylabel=\tiny{\%},
      legend style={nodes=right, fill=none, draw=none,font=\tiny},
      legend pos=south east]
      \addplot [
        color=blue,
        solid
      ]
      coordinates{
       (1,0)(2,100)(3,100)(4,100)(5,100)(6,100)(7,100)(8,100)(9,100)(10,100)(11,100)(12,100)(13,100)(14,100)(15,100)(16,100)(17,100)(18,100)(19,100)(20,100)(21,100)(22,100)(23,100)(24,100)(25,100)(26,100)(27,100)(28,100)(29,100)(30,100)(31,100)(32,100)(33,100)(34,100)(35,100)(36,100)(37,100)(38,100)(39,100)(40,100)(41,83.82066)(42,50.06228)(43,50.67421)(44,50.28078)(45,50.64044)(46,50.67828)(47,50.29282)(48,49.57134)(49,50.45179)(50,50.43054)(51,50.54727)(52,50.90198)(53,51.84262)(54,50.63908)(55,50.35419)(56,50.70665)(57,50.39043)(58,50.2639)(59,51.64244)(60,50.17551)(61,49.72814)(62,51.09079)(63,50.67942)(64,50.32444)(65,49.82808)(66,50.47207)(67,50.78984)(68,51.05899)(69,49.92992)(70,50.60797)(71,51.13696)(72,50.2864)(73,50.98857)(74,50.79255)(75,50.50497)(76,50.58158)(77,50.03598)(78,50.22564)(79,49.60668)(80,50.24347)(81,49.62461)(82,50.60347)(83,50.42314)(84,50.68813)(85,49.9074)(86,50.8199)(87,51.24724)(88,50.37278)(89,51.11026)(90,50.06004)(91,51.00145)(92,49.98474)(93,49.98143)(94,50.90606)(95,50.7638)(96,49.97783)(97,50.38999)(98,51.48873)(99,51.08653)(100,51.15304)(101,50.95957)(102,50.4016)(103,51.43312)(104,50.5466)(105,49.99937)(106,50.46327)(107,49.88512)(108,50.51318)(109,50.80937)(110,50.39082)(111,50.73712)(112,50.65109)(113,50.29195)(114,49.14544)(115,51.39832)(116,49.35508)(117,51.06316)(118,49.94)(119,50.213)(120,50.22105)(121,49.93223)(122,50.41865)(123,50.35713)(124,50.41415)(125,51.07988)(126,50.9451)(127,49.63837)(128,50.76742)(129,50.60897)(130,50.11806)(131,49.80679)(132,51.11503)(133,50.15439)(134,50.58872)(135,49.58126)(136,50.15918)(137,50.90488)(138,50.65881)(139,51.43114)(140,50.37313)(141,51.37953)(142,49.68204)(143,49.79704)(144,50.70248)(145,50.46)(146,51.02947)(147,49.80245)(148,49.8044)(149,49.84019)(150,50.50898)(151,51.12757)(152,50.45868)(153,50.18377)(154,51.11207)(155,50.41385)(156,51.50417)(157,50.72755)(158,50.83212)(159,50.98162)(160,50.59157)(161,50.65943)(162,50.08738)(163,50.07773)(164,50.83041)(165,49.69589)(166,49.57431)(167,50.60973)(168,50.43985)(169,49.89679)(170,50.81254)(171,49.95208)(172,50.38959)(173,50.50819)(174,50.31364)(175,49.74153)(176,50.67282)(177,50.12008)(178,50.43837)(179,50.34061)(180,50.56744)(181,50.8982)(182,50.13358)(183,49.94794)(184,50.74586)(185,49.82437)(186,51.23194)(187,50.92715)(188,49.67084)(189,50.39468)(190,50.63116)(191,49.90627)(192,50.45883)(193,50.49773)(194,50.12539)(195,50.61012)(196,50.25849)(197,49.74762)(198,51.4468)(199,49.71716)(200,50.69525)(201,50.75923)(202,50.21827)(203,49.88696)(204,49.76173)(205,51.64956)(206,50.87723)(207,51.28757)(208,50.25557)(209,50.04051)(210,50.74232)(211,49.57355)(212,49.34333)(213,50.17716)(214,50.51091)(215,50.89741)(216,50.11174)(217,51.39529)(218,50.26157)(219,49.7075)(220,50.32812)(221,50.20992)(222,50.36684)(223,50.91298)(224,50.72531)(225,50.4178)(226,51.33843)(227,50.04343)(228,49.94544)(229,50.59479)(230,51.11642)(231,49.6443)(232,50.36563)(233,50.55403)(234,50.9608)(235,50.73923)(236,50.57349)(237,51.80598)(238,51.06042)(239,50.05003)(240,50.29394)(241,48.71217)(242,50.46127)(243,50.13923)(244,50.62258)(245,50.29152)(246,50.65401)(247,50.84531)(248,50.26896)(249,51.22402)(250,50.24199)(251,50.32071)(252,49.9911)(253,50.39894)(254,50.20997)(255,50.32791)(256,50.47406)(257,51.67126)(258,51.61928)(259,50.54697)(260,49.86899)(261,99.89438)(262,100)(263,100)(264,100)(265,100)(266,100)(267,100)(268,100)(269,100)(270,100)(271,100)(272,100)(273,100)(274,100)(275,100)(276,100)(277,100)(278,100)(279,100)(280,100)(281,100)(282,100)(283,100)(284,100)(285,100)(286,100)(287,100)(288,100)(289,100)(290,100)(291,100)(292,100)(293,100)(294,100)(295,100)(296,100)(297,100)(298,100)(299,100)(300,100) };
      \addlegendentry{$\sigma{}^\text{2}_\text{z}=10$}

      \addplot [
        color=green!50!black,
        solid
      ]
      coordinates{
       (2,100)(3,100)(4,100)(5,100)(6,100)(7,100)(8,100)(9,100)(10,100)(11,100)(12,100)(13,100)(14,100)(15,100)(16,100)(17,100)(18,100)(19,100)(20,100)(21,100)(22,100)(23,100)(24,100)(25,100)(26,100)(27,100)(28,100)(29,100)(30,100)(31,100)(32,100)(33,100)(34,100)(35,100)(36,100)(37,100)(38,100)(39,100)(40,100)(41,80.38731)(42,50.9154)(43,50.34417)(44,51.09313)(45,51.14031)(46,51.93229)(47,49.7758)(48,51.16016)(49,51.04724)(50,51.06203)(51,51.80315)(52,51.22546)(53,50.19813)(54,49.37209)(55,50.71695)(56,50.30212)(57,51.55605)(58,51.55909)(59,51.30853)(60,50.36809)(61,50.5277)(62,50.83888)(63,50.82395)(64,50.64376)(65,50.61253)(66,50.61512)(67,51.48893)(68,50.53923)(69,52.18513)(70,51.1449)(71,50.6216)(72,49.8437)(73,50.83448)(74,50.4975)(75,51.92769)(76,51.05127)(77,50.73314)(78,50.99025)(79,50.29102)(80,51.14766)(81,51.00372)(82,50.77929)(83,51.36868)(84,50.71002)(85,51.38953)(86,51.19029)(87,50.80323)(88,50.69397)(89,50.26627)(90,50.4984)(91,50.13564)(92,50.93255)(93,50.58177)(94,49.90633)(95,51.04069)(96,50.52538)(97,51.7443)(98,50.34487)(99,50.43257)(100,51.06485)(101,50.66118)(102,51.04047)(103,50.99945)(104,49.86133)(105,50.43489)(106,51.88938)(107,51.01937)(108,49.46106)(109,51.12878)(110,50.20831)(111,49.99792)(112,50.40459)(113,50.97533)(114,51.37539)(115,51.52877)(116,51.2002)(117,49.55633)(118,51.37078)(119,50.0059)(120,50.44171)(121,51.19489)(122,50.8881)(123,50.97323)(124,51.77327)(125,50.26515)(126,51.15305)(127,50.59536)(128,50.52747)(129,51.14753)(130,51.16017)(131,50.98401)(132,51.1286)(133,50.85058)(134,50.99414)(135,52.2283)(136,51.43417)(137,49.88021)(138,51.27191)(139,51.76708)(140,51.39368)(141,51.30841)(142,50.37257)(143,49.56472)(144,51.52343)(145,51.05201)(146,51.05132)(147,50.55867)(148,51.30108)(149,49.96005)(150,49.88006)(151,50.15616)(152,50.54275)(153,50.90588)(154,50.23611)(155,51.17586)(156,51.37844)(157,51.71796)(158,50.63397)(159,51.41887)(160,51.89439)(161,51.11337)(162,50.70036)(163,50.86449)(164,50.90735)(165,50.35574)(166,50.55141)(167,50.36175)(168,51.03214)(169,50.3315)(170,51.89783)(171,50.60284)(172,50.58738)(173,50.7879)(174,51.20979)(175,51.47586)(176,51.26843)(177,50.73643)(178,51.80089)(179,50.94508)(180,51.4777)(181,51.29134)(182,50.78742)(183,50.49281)(184,52.09801)(185,50.75411)(186,50.50111)(187,52.1743)(188,51.42852)(189,50.99068)(190,51.39294)(191,51.4628)(192,51.25389)(193,51.08103)(194,51.42833)(195,50.68788)(196,51.34295)(197,51.25601)(198,51.94378)(199,51.86967)(200,50.91716)(201,50.66254)(202,50.0372)(203,50.48485)(204,51.44936)(205,50.72986)(206,51.53587)(207,51.01531)(208,51.21345)(209,51.1898)(210,51.05897)(211,50.64965)(212,51.10864)(213,50.51701)(214,52.29242)(215,51.82768)(216,50.34504)(217,50.02714)(218,51.78115)(219,50.7051)(220,52.31797)(221,51.49217)(222,50.77333)(223,50.53778)(224,50.92564)(225,50.38599)(226,51.41538)(227,51.45024)(228,50.71012)(229,51.07745)(230,51.06978)(231,51.61832)(232,51.16621)(233,51.15476)(234,51.40971)(235,51.71389)(236,51.12021)(237,50.76242)(238,51.3995)(239,50.63256)(240,50.76309)(241,50.58817)(242,50.40578)(243,50.51695)(244,51.17554)(245,51.21479)(246,50.32533)(247,50.01607)(248,51.41355)(249,51.0291)(250,51.3194)(251,50.52236)(252,51.05605)(253,50.65167)(254,50.22275)(255,51.01478)(256,50.73593)(257,50.6975)(258,50.96745)(259,51.60633)(260,51.02502)(261,99.87378)(262,100)(263,100)(264,100)(265,100)(266,100)(267,100)(268,100)(269,100)(270,100)(271,100)(272,100)(273,100)(274,100)(275,100)(276,100)(277,100)(278,100)(279,100)(280,100)(281,100)(282,100)(283,100)(284,100)(285,100)(286,100)(287,100)(288,100)(289,100)(290,100)(291,100)(292,100)(293,100)(294,100)(295,100)(296,100)(297,100)(298,100)(299,100)(300,100) };
      \addlegendentry{$\sigma{}^\text{2}_\text{z}=20$};

      \addplot [
        color=red,
        solid
      ]
      coordinates{
        (1,0)(2,100)(3,100)(4,100)(5,100)(6,100)(7,100)(8,100)(9,100)(10,100)(11,100)(12,100)(13,100)(14,100)(15,100)(16,100)(17,100)(18,100)(19,100)(20,100)(21,100)(22,100)(23,100)(24,100)(25,100)(26,100)(27,100)(28,100)(29,100)(30,100)(31,100)(32,100)(33,100)(34,100)(35,100)(36,100)(37,100)(38,100)(39,100)(40,100)(41,85.73398)(42,55.8931)(43,55.4115)(44,55.79772)(45,56.01417)(46,55.92337)(47,55.44602)(48,56.85507)(49,55.94635)(50,55.53241)(51,55.40362)(52,55.81118)(53,55.89755)(54,56.04131)(55,56.36228)(56,56.4972)(57,56.54959)(58,56.36233)(59,55.78409)(60,55.63888)(61,56.01385)(62,55.96388)(63,55.8952)(64,55.16207)(65,55.86065)(66,56.6557)(67,56.11654)(68,56.53703)(69,55.03346)(70,55.76746)(71,57.12746)(72,55.77906)(73,55.53271)(74,56.02861)(75,55.574)(76,56.07032)(77,56.22888)(78,56.37153)(79,56.37376)(80,54.46234)(81,56.29309)(82,55.5584)(83,55.92713)(84,56.07003)(85,56.00424)(86,56.59083)(87,57.11076)(88,54.92249)(89,55.38076)(90,56.47063)(91,55.83082)(92,55.38953)(93,56.17903)(94,55.69314)(95,56.12953)(96,56.5346)(97,56.34114)(98,55.95798)(99,56.24913)(100,56.14919)(101,56.02143)(102,55.9864)(103,55.87962)(104,55.95536)(105,55.8372)(106,56.16661)(107,56.53118)(108,55.1006)(109,56.65151)(110,56.93666)(111,55.42897)(112,56.15489)(113,55.95032)(114,55.15817)(115,56.76868)(116,55.77621)(117,55.44393)(118,55.79726)(119,54.92167)(120,55.91974)(121,55.73234)(122,55.86428)(123,56.80873)(124,56.35042)(125,55.21046)(126,56.49774)(127,56.00505)(128,55.40856)(129,56.76558)(130,56.4826)(131,56.61806)(132,55.92939)(133,56.293)(134,55.71266)(135,57.13753)(136,56.85015)(137,56.17847)(138,55.7602)(139,56.34295)(140,56.31044)(141,56.05387)(142,56.24403)(143,56.06054)(144,56.86696)(145,56.24207)(146,55.0092)(147,55.61389)(148,55.83125)(149,56.29002)(150,55.89161)(151,55.4608)(152,56.12329)(153,56.28237)(154,56.1977)(155,55.46249)(156,55.5555)(157,55.77594)(158,55.90335)(159,55.56432)(160,55.23692)(161,55.60094)(162,55.08537)(163,54.74801)(164,55.68513)(165,55.59184)(166,56.49374)(167,55.37767)(168,55.36138)(169,54.63786)(170,56.44848)(171,55.56449)(172,56.3306)(173,55.5052)(174,55.71254)(175,57.22065)(176,55.11104)(177,56.22904)(178,55.99162)(179,56.4517)(180,55.50374)(181,55.95667)(182,55.55708)(183,56.49032)(184,55.1062)(185,55.98573)(186,56.98736)(187,56.26076)(188,55.59014)(189,56.36688)(190,56.00382)(191,56.09155)(192,55.74795)(193,55.59532)(194,56.12864)(195,57.08812)(196,56.72248)(197,55.79629)(198,55.69637)(199,56.33439)(200,56.91531)(201,56.93604)(202,55.68375)(203,55.38055)(204,56.13223)(205,55.9704)(206,56.05768)(207,56.39311)(208,55.90301)(209,55.65631)(210,55.24104)(211,55.42059)(212,56.51222)(213,56.24943)(214,56.11844)(215,56.81896)(216,55.72394)(217,56.674)(218,56.25814)(219,56.48695)(220,56.04203)(221,56.69971)(222,55.94764)(223,56.18328)(224,55.52307)(225,55.96065)(226,55.85565)(227,56.46779)(228,56.47514)(229,56.21584)(230,56.12859)(231,55.8007)(232,55.79653)(233,56.07841)(234,56.50737)(235,55.85568)(236,55.5338)(237,56.70597)(238,55.9399)(239,56.72683)(240,55.37445)(241,55.38921)(242,55.88061)(243,55.03646)(244,55.67463)(245,55.46046)(246,56.37487)(247,56.76246)(248,56.22422)(249,55.81827)(250,56.00015)(251,55.8603)(252,54.66052)(253,56.46243)(254,55.97161)(255,55.45593)(256,56.57617)(257,56.12392)(258,57.62599)(259,55.67739)(260,56.00799)(261,99.86069)(262,100)(263,100)(264,100)(265,100)(266,100)(267,100)(268,100)(269,100)(270,100)(271,100)(272,100)(273,100)(274,100)(275,100)(276,100)(277,100)(278,100)(279,100)(280,100)(281,100)(282,100)(283,100)(284,100)(285,100)(286,100)(287,100)(288,100)(289,100)(290,100)(291,100)(292,100)(293,100)(294,100)(295,100)(296,100)(297,100)(298,100)(299,100)(300,100) };
      \addlegendentry{$\sigma{}^\text{2}_\text{z}=30$};

      \addplot [
        color=cyan,
        solid
      ]
      coordinates{
        (1,0)(2,100)(3,100)(4,100)(5,100)(6,100)(7,100)(8,100)(9,100)(10,100)(11,100)(12,100)(13,100)(14,100)(15,100)(16,100)(17,100)(18,100)(19,100)(20,100)(21,100)(22,100)(23,100)(24,100)(25,100)(26,100)(27,100)(28,100)(29,100)(30,100)(31,100)(32,100)(33,100)(34,100)(35,100)(36,100)(37,100)(38,100)(39,100)(40,100)(41,89.90049)(42,60.35412)(43,59.27261)(44,60.37575)(45,60.49832)(46,59.38802)(47,60.5358)(48,60.08083)(49,59.80077)(50,60.1687)(51,60.43787)(52,60.11424)(53,61.44451)(54,59.86026)(55,60.30299)(56,59.8541)(57,59.80465)(58,59.96118)(59,59.8085)(60,59.84073)(61,60.19944)(62,59.59183)(63,60.73188)(64,60.17416)(65,60.05313)(66,59.69634)(67,59.48309)(68,59.96023)(69,60.33757)(70,60.26166)(71,60.2038)(72,60.38508)(73,60.13541)(74,60.18451)(75,60.61461)(76,60.49739)(77,59.31722)(78,61.07263)(79,59.02021)(80,60.89339)(81,61.06913)(82,60.41084)(83,60.21669)(84,59.47155)(85,60.6436)(86,59.28577)(87,60.01281)(88,59.8383)(89,60.13566)(90,58.54219)(91,59.68456)(92,58.71719)(93,60.35496)(94,59.98472)(95,59.9706)(96,60.11282)(97,60.78353)(98,60.29098)(99,59.58558)(100,60.01084)(101,60.42869)(102,59.77901)(103,59.36619)(104,61.11413)(105,60.05797)(106,60.63392)(107,61.05613)(108,59.48355)(109,60.34914)(110,60.76363)(111,59.91951)(112,60.77653)(113,60.56344)(114,59.78934)(115,60.00213)(116,59.84392)(117,60.73875)(118,59.88986)(119,59.76374)(120,60.32887)(121,59.43566)(122,60.40415)(123,60.9077)(124,61.15638)(125,60.20819)(126,60.5759)(127,61.82079)(128,59.82638)(129,60.01827)(130,60.6151)(131,60.65643)(132,59.87655)(133,59.4839)(134,60.10339)(135,59.70377)(136,61.28805)(137,59.82918)(138,60.64046)(139,60.88768)(140,60.97192)(141,60.01696)(142,59.75129)(143,60.26127)(144,60.72306)(145,60.51905)(146,60.11404)(147,59.95569)(148,60.62005)(149,60.80245)(150,59.99658)(151,60.13122)(152,60.21526)(153,60.31156)(154,59.41359)(155,59.39558)(156,60.52641)(157,60.1988)(158,59.92881)(159,60.33086)(160,60.18102)(161,60.24771)(162,60.9675)(163,59.53756)(164,61.26915)(165,59.98473)(166,60.89958)(167,58.69949)(168,60.08165)(169,59.87523)(170,60.67646)(171,60.3957)(172,60.92466)(173,60.80667)(174,61.11421)(175,59.90233)(176,59.1781)(177,59.54493)(178,61.00638)(179,60.4624)(180,60.64485)(181,59.53447)(182,60.7419)(183,60.40753)(184,60.90291)(185,61.04655)(186,59.29829)(187,61.05785)(188,60.13664)(189,59.88453)(190,60.32046)(191,59.90204)(192,60.66608)(193,59.82457)(194,60.78762)(195,61.35915)(196,60.08165)(197,59.85495)(198,59.79868)(199,60.2214)(200,60.18121)(201,60.20292)(202,59.69822)(203,59.85039)(204,60.05337)(205,61.38193)(206,60.21574)(207,59.27749)(208,60.61482)(209,60.60101)(210,60.27141)(211,60.3921)(212,59.99753)(213,60.10987)(214,60.43151)(215,59.34477)(216,59.42863)(217,59.4417)(218,60.08267)(219,59.66435)(220,60.59392)(221,60.00169)(222,60.24371)(223,60.20386)(224,60.60506)(225,61.13305)(226,59.69713)(227,59.17481)(228,60.24162)(229,60.46607)(230,60.32035)(231,60.33496)(232,60.21831)(233,59.89191)(234,60.64118)(235,61.27556)(236,61.04681)(237,59.96447)(238,60.08057)(239,60.02484)(240,61.01231)(241,59.80396)(242,60.61627)(243,60.80516)(244,60.33864)(245,59.97541)(246,60.10684)(247,60.94466)(248,60.71536)(249,59.40423)(250,59.64088)(251,60.5866)(252,60.84957)(253,60.65919)(254,59.55741)(255,60.2859)(256,61.17748)(257,60.73895)(258,59.97089)(259,59.98633)(260,59.81749)(261,99.88747)(262,100)(263,100)(264,100)(265,100)(266,100)(267,100)(268,100)(269,100)(270,100)(271,100)(272,100)(273,100)(274,100)(275,100)(276,100)(277,100)(278,100)(279,100)(280,100)(281,100)(282,100)(283,100)(284,100)(285,100)(286,100)(287,100)(288,100)(289,100)(290,100)(291,100)(292,100)(293,100)(294,100)(295,100)(296,100)(297,100)(298,100)(299,100)(300,100) };
      \addlegendentry{$\sigma{}^\text{2}_\text{z}=40$};

      \addplot [
        color=mycolor2,
        solid
      ]
      coordinates{
        (1,0)(2,100)(3,100)(4,100)(5,100)(6,100)(7,100)(8,100)(9,100)(10,100)(11,100)(12,100)(13,100)(14,100)(15,100)(16,100)(17,100)(18,100)(19,100)(20,100)(21,100)(22,100)(23,100)(24,100)(25,100)(26,100)(27,100)(28,100)(29,100)(30,100)(31,100)(32,100)(33,100)(34,100)(35,100)(36,100)(37,100)(38,100)(39,100)(40,100)(41,90.17449)(42,63.12502)(43,63.75519)(44,63.35282)(45,63.34252)(46,62.38623)(47,62.47365)(48,61.74348)(49,62.43851)(50,63.17999)(51,63.12277)(52,63.38039)(53,63.50185)(54,63.02488)(55,62.75478)(56,62.33522)(57,63.15539)(58,62.72396)(59,63.62425)(60,63.24982)(61,63.30441)(62,63.12522)(63,63.19908)(64,62.59424)(65,63.23157)(66,62.55084)(67,63.1017)(68,63.27318)(69,62.99832)(70,62.67268)(71,63.33146)(72,63.28851)(73,63.21826)(74,62.81296)(75,63.39595)(76,63.43786)(77,62.9762)(78,62.06798)(79,64.03523)(80,63.48294)(81,63.27961)(82,63.02095)(83,63.41211)(84,62.24147)(85,62.7628)(86,62.52815)(87,63.08182)(88,63.03721)(89,62.63156)(90,62.99247)(91,62.82352)(92,62.71356)(93,63.14327)(94,62.47719)(95,62.76219)(96,62.97597)(97,63.75395)(98,62.27197)(99,62.596)(100,63.66963)(101,62.89374)(102,63.12019)(103,62.13269)(104,62.67302)(105,63.75235)(106,62.70409)(107,63.25886)(108,63.35123)(109,62.121)(110,62.20724)(111,62.91031)(112,63.00737)(113,63.44875)(114,62.71692)(115,63.56106)(116,63.5917)(117,62.90027)(118,62.57817)(119,63.15109)(120,62.74369)(121,62.88485)(122,63.79924)(123,62.30978)(124,62.68943)(125,63.22569)(126,63.61846)(127,62.95519)(128,63.18033)(129,62.71702)(130,61.55358)(131,63.22112)(132,62.83664)(133,62.59219)(134,63.332)(135,63.15259)(136,61.68659)(137,63.29206)(138,62.73389)(139,63.01033)(140,62.99864)(141,62.8915)(142,63.76443)(143,63.21389)(144,63.06311)(145,63.78658)(146,63.32584)(147,62.90795)(148,62.88192)(149,63.33388)(150,62.54517)(151,63.80816)(152,62.72694)(153,63.15158)(154,62.43788)(155,63.03809)(156,62.80947)(157,61.60269)(158,62.67836)(159,63.62149)(160,63.2553)(161,63.35266)(162,62.71586)(163,63.21193)(164,62.72055)(165,62.73044)(166,63.43162)(167,62.39783)(168,62.44952)(169,63.17009)(170,63.47248)(171,62.77419)(172,62.8787)(173,63.27873)(174,63.22817)(175,62.09919)(176,62.42889)(177,63.38046)(178,63.15774)(179,63.49905)(180,63.43221)(181,62.13318)(182,63.16286)(183,63.13113)(184,61.54584)(185,62.93856)(186,62.228)(187,61.89303)(188,63.26336)(189,62.57351)(190,62.50884)(191,63.77081)(192,62.56245)(193,63.06335)(194,62.81663)(195,63.04276)(196,64.15423)(197,63.59493)(198,63.47916)(199,62.88658)(200,63.51665)(201,63.11509)(202,62.94318)(203,63.18845)(204,63.4119)(205,63.31992)(206,62.40011)(207,63.32207)(208,62.60058)(209,63.0279)(210,62.78228)(211,62.1975)(212,62.25461)(213,62.97852)(214,62.35318)(215,63.48872)(216,63.45731)(217,63.13004)(218,62.69569)(219,63.00422)(220,62.86265)(221,62.26411)(222,62.5123)(223,63.11057)(224,63.65438)(225,63.24915)(226,63.31203)(227,62.5256)(228,62.92487)(229,63.10466)(230,61.88741)(231,63.74521)(232,62.93641)(233,62.11111)(234,63.31783)(235,62.11257)(236,62.20826)(237,63.6497)(238,62.66277)(239,63.04271)(240,63.2064)(241,63.80334)(242,62.68535)(243,63.44563)(244,62.21563)(245,62.40966)(246,62.92185)(247,63.09006)(248,63.40191)(249,62.13704)(250,63.22679)(251,62.48745)(252,62.92875)(253,62.55193)(254,63.05477)(255,62.87688)(256,63.45926)(257,62.69276)(258,62.42743)(259,63.13998)(260,62.88819)(261,99.87236)(262,100)(263,100)(264,100)(265,100)(266,100)(267,100)(268,100)(269,100)(270,100)(271,100)(272,100)(273,100)(274,100)(275,100)(276,100)(277,100)(278,100)(279,100)(280,100)(281,100)(282,100)(283,100)(284,100)(285,100)(286,100)(287,100)(288,100)(289,100)(290,100)(291,100)(292,100)(293,100)(294,100)(295,100)(296,100)(297,100)(298,100)(299,100)(300,100) };
      \addlegendentry{$\sigma{}^\text{2}_\text{z}=50$};

    \end{axis}
  \end{tikzpicture}
}
\end{figure}
\end{document}

I have to mention that this problem does not appear in all of my plots. The majority of them appears fine. Only a few have this strange behaviour. I tried compiling my document a couple times in case it needed for some reason a second compilation, but nothing changed.

share|improve this question
I'm not sure I understand correctly: Is the code you posted supposed to reproduce the problem? For me it compiles correctly. What version of PGFPlots are you using? – Jake Sep 5 '12 at 15:01
No the code is not supposed to reproduce the problem. But there is nothing different in the code that does, except that I don't use lipsum but actual text. As I said it is weird that some plots have problems while other don't. And the only thing that differs between them is the coordinations. Everything else is the same. – gkaran89 Sep 5 '12 at 15:04
Are you using the todonotes package, by any chance? Also, are you using the most recent version of PGFPlots? – Jake Sep 5 '12 at 15:05
No, I'm not using the todonotes package. As for pgfplots I have the following installed Package: pgfplots 2011/12/29 v1.5.1 (git show 1.5.1-4-g53e640f ) – gkaran89 Sep 5 '12 at 15:09
Hmmm. You could try upgrading to the current version 1.6.1, but I'm not too confident that that will help. Could you try uncommenting the axis x line=middle and axis y line=middle (and the axis lines=left) keys? – Jake Sep 5 '12 at 15:18
show 5 more comments

closed as too localized by lockstep, percusse, Paul Gaborit, zeroth, Tom Bombadil Sep 26 '12 at 1:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.