def plotMaker(plotData,placeholder="placeholder",width="600",height="300",xAxisLabel=None,xAxisFontSize=None,xAxisFontFamily=None,xAxisCentralize=None,yAxisLabel=None,yAxisFontSize=None,yAxisFontFamily=None,yAxisCentralize=None): try: dataString = printMultiplesPlotDatas(plotData) except TypeError: dataString = printSinglePlotData(plotData) return {'datasets': dataString,'placeholder':placeholder,'width':width,'height':height, 'xAxisLabel':xAxisLabel, 'xAxisFontSize':xAxisFontSize, 'xAxisFontFamily':xAxisFontFamily, 'xAxisCentralize':xAxisCentralize, 'yAxisLabel':yAxisLabel, 'yAxisFontSize':yAxisFontSize, 'yAxisFontFamily':yAxisFontFamily, 'yAxisCentralize':yAxisCentralize, }
def multiplePlotsMaker(plotDatas,placeholder="placeholder",width="600",height="300"): dataString = printMultiplesPlotDatas(plotDatas) return {'datasets': dataString,'placeholder':placeholder,'width':width,'height':height}