Beispiel #1
0
        public static G2DPlotStyleCollection PlotStyle_Bar(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var result = new G2DPlotStyleCollection();
            var ps1    = new BarGraphPlotStyle(context);

            result.Add(ps1);
            return(result);
        }
 public bool InitializeDocument(params object[] args)
 {
   if (args == null || args.Length == 0)
     return false;
   BarGraphPlotStyle doc = args[0] as BarGraphPlotStyle;
   if (doc == null)
     return false;
   _doc = doc;
   Initialize(true);
   return true;
 }
Beispiel #3
0
        /// <summary>
        /// Creates a plot style collection for a bar graph.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="isStacked">If set to <c>true</c>, the bar should be stacked.</param>
        /// <returns></returns>
        public static G3DPlotStyleCollection PlotStyle_Bar(Altaxo.Main.Properties.IReadOnlyPropertyBag context, bool isStacked)
        {
            var result = new G3DPlotStyleCollection();
            var ps1    = new BarGraphPlotStyle(context);

            if (isStacked)
            {
                ps1.StartAtPreviousItem = true;
            }
            result.Add(ps1);
            return(result);
        }
        public bool InitializeDocument(params object[] args)
        {
            if (args == null || args.Length == 0)
            {
                return(false);
            }
            BarGraphPlotStyle doc = args[0] as BarGraphPlotStyle;

            if (doc == null)
            {
                return(false);
            }
            _doc = doc;
            Initialize(true);
            return(true);
        }
Beispiel #5
0
		public static G2DPlotStyleCollection PlotStyle_Bar(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
		{
			var result = new G2DPlotStyleCollection();
			BarGraphPlotStyle ps1 = new BarGraphPlotStyle(context);
			result.Add(ps1);
			return result;
		}