# DateListPlot in webMathematica doesn't show FrameTicks properly

**URL:** <https://community.wolfram.com/t/datelistplot-in-webmathematica-doesnt-show-frameticks-properly/6014>\
**Category:** Questions\
**Tags:** mathematica, graphics-and-visualization\
**Created:** [June 23, 2015, 3:38pm UTC](https://community.wolfram.com/t/datelistplot-in-webmathematica-doesnt-show-frameticks-properly/6014 "2015-06-23T15:38:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guido](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@guido](https://community.wolfram.com/u/guido)\
**Post date:** [June 23, 2015, 3:38pm UTC](https://community.wolfram.com/t/datelistplot-in-webmathematica-doesnt-show-frameticks-properly/6014/1 "2015-06-23T15:38:45Z")

</div>

It seems that DateListPlot when used in webMathematica (3.3.1) show different output than in desktop Mathematica (10.1).

In desktop Mathematica, if you evalutate

```
data = {{{2015, 1}, 10}, {{2015, 2}, 6}, {{2015, 3}, 15}};
DateListPlot[data]

```

will show this picture:

 ![g1.MMA.gif](https://global.discourse-cdn.com/wolfram/original/2X/7/76f54315aa57975c04e218bd228c3747dc6f134c.gif)

in webMathematica instead, when you call this code (html removed for clarity) in .jsp file from your browser

```
 <msp:evaluate>
      data = {{{2015, 1}, 10}, {{2015, 2}, 6}, {{2015, 3}, 15}};
      MSPShow[DateListPlot[data]]
 </msp:evaluate>

```

it will show the graph without the vertical and horizontal Ticks:

 ![g1.webMMA.gif](https://global.discourse-cdn.com/wolfram/original/2X/6/6a6edb00c8c97b780457fd244edbaf1cd46afa63.gif)

Then I’ve tried to add FrameTicks → True (and Frame-\> False otherwise it doesn’t show them)

```
<msp:evaluate>
      data = {{{2015, 1}, 10}, {{2015, 2}, 6}, {{2015, 3}, 15}};
      MSPShow[
         DateListPlot[data
           ,Frame-> False
           ,FrameTicks -> True]]
    </msp:evaluate>

```

the output now shows the ticks, but in Scientific Notation. No way to display the ticks in date format:

 ![g2.webMMA.gif](https://global.discourse-cdn.com/wolfram/original/2X/a/a81c6f3254fbba1b7b06c177646a00c5cb7ed445.gif)

It appears as a bug for me, because other functions as Plot[] or ListPlot[] produce a regular output. This strange behavior seems to be peculiar to DateListPlot[].

Does anyone has encountered the same problem or found a workaround?

_(I’ve posted this question also on [StackExchange](http://mathematica.stackexchange.com/questions/86647/datelistplot-in-webmathematica-doesnt-show-frameticks-properly) )_

---

<div class="post-metadata">

**Author:** ![gdelfino](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gdelfino/32/41294_2.png) [@gdelfino](https://community.wolfram.com/u/gdelfino)\
**Post date:** [October 30, 2015, 1:01pm UTC](https://community.wolfram.com/t/datelistplot-in-webmathematica-doesnt-show-frameticks-properly/6014/2 "2015-10-30T13:01:31Z")

</div>

I recognize this issue. I am affected by it too, but in my case I see it when I run my program from the Wolfram Script environment (I am not using webMathematica). Under 10.2 I always see the issue when running scripts, but under 10.3 the issue is not preset if the front end is not open.

I can run my script with my Mathematica Front End closed, but I don’t think you can do that with webMathematica. I have contacted support and they have reproduced the problem [CASE:3450946].

My script runs automatically everyday in order to generate and email a report. Unfortunately I keep forgetting to close my Mathematica Front End and therefore my report is sometimes missing the ticks. I really would like to have a workaround this issue.

---

<div class="post-metadata">

**Author:** ![petermaronsson](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@petermaronsson](https://community.wolfram.com/u/petermaronsson)\
**Post date:** [April 13, 2016, 4:48am UTC](https://community.wolfram.com/t/datelistplot-in-webmathematica-doesnt-show-frameticks-properly/6014/3 "2016-04-13T04:48:55Z")

</div>

I’ve encountered the same problem with Mathematica v10.0 and .NETLink (evaluateToImage).

A “workaround” that’s okay for me is to replace

```
PlotTheme->"Web"

```

with

```
Sequence@@DeleteCases[Charting`ResolvePlotTheme["Web", DateListPlot], 
 HoldPattern[FrameTicks -> _]]

```

I hope this helps.
