Posts

Showing posts from March 13, 2019

Padding lists for accurate plotting

Image
1 $begingroup$ I have the following data which is in the form of irregular/non rectangular arrays list1 = {{1}, {2}, {3}, {4}, {5, 6, 7}, {8, 9, 10}, {11}, {12}} To transpose it for plotting, I have to use (because of the irregular shape) list2 = Flatten[list1, {{2}, {1}}] This is now a $3times1$ column. I want to plot this data, So I use the ListLinePlot as ListLinePlot[list2, DataRange -> {1, 3}, Frame -> True] The three rows are plotted as three curves, but the problem is that the upper two curves which correspond to the second and third row of list2 also start from 1 on the x-axis.? Shouldn't they start from 2 instead of 1? I thought I could use PadLeft or PadRight with empty entries {} to the left or right of the last two (2 element) rows of list2 (to make them 6 element rows,

David Lloyd Jones

Image
David Lloyd Jones ( * 1944, Victoria (Austrália)- ) é um botânico, ilustrador, e explorador australiano. Em 1968 publicou de Orchids of Australia , editado por ele e por Bruce Muir, publicado por T.Nelson (Austrália) Ltd., em 1969 foi um dos organizadores da "World Orchid Conference", em Sydney. Em 1987 mudou-se para Canberra para trabalhar no "Australian National Botanic Gardens" Até julho de 2008 havia descrito, ou recombinado os nomes de 2.249 (IPNI)espécies de plantas, principalmente orquídeas. Algumas publicações | 1988. Native Orchids of Australia Architecture and the Environment: Contemporary Green Buildings . ISBN 0-87951-819-7 2005. Palms In Australia . ISBN 978-1-876334-47-5 2006. Complete Guide to Native Orchids of Australia. ISBN 978-1-877069-12-3 D.L.Jones é a abreviatura padrão usada para indicar David Lloyd Jones como autoridade na descrição e classificação científica de um nome botânico. ( Lista dos táxones descritos p

EPPlus ASP.NET Excel sheet is blank when downloaded

Image
0 I'm trying to make an Excel spreadsheet using ASP.NET and the spreadsheet has nothing in it. I know my datatable is full. It's has bytes associated with the object just the end result is blank. DataTable dt = sql.GetSqlTable(Query); using (ExcelPackage pck = new ExcelPackage()) { ExcelWorksheet ws = pck.Workbook.Worksheets.Add("Worksheet.xlsx"); ws.Cells["A1"].LoadFromDataTable(dt, true); var ms = new System.IO.MemoryStream(); pck.SaveAs(ms); ms.Position = 0; ms.WriteTo(Response.OutputStream); } asp.net excel epplus