Skip to content

Commit 29ff4e2

Browse files
committed
Grid internal issue
1 parent 1d60df9 commit 29ff4e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎MatplotlibCS/Grid.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public List<object> XTimeTicks
7676

7777
if (firstItem is DateTime)
7878
{
79+
if(_x == null)
80+
_x = new List<object>();
81+
7982
_x.Clear();
8083
foreach (var item in value)
8184
_x.Add(((DateTime)item).ToString("yyyy-MM-ddTHH:mm:ss,ffffff"));

0 commit comments

Comments
 (0)