/* */ .search { float: right; margin-top: -10px; position: relative; display: none; } /* Pop up fancy box for mute and ban */ #popUp { width: 400px; height: 300px; margin-top:4px; } #popUp #header { width: 100%; height: 75px; border-bottom: 1px solid #ccc; background: #ffffff; /* Old browsers */ background: -moz-linear-gradient(top, #ffffff 0%, #f9f9f9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f9f9f9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f9f9f9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f9f9f9',GradientType=0 ); /* IE6-9 */ } #popUp #header span { font-size: 20px; margin: 28px 30px; color: #3E90B9; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); display: inline-block; line-height: 1em; } #popUp #body { margin: 30px; margin-top:25px; font-size: 12px; } #popUp #okay-button { margin-top: 30px; background: -webkit-linear-gradient(top, #f6fdff 0%,#b8dcea 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f6fdff 0%,#b8dcea 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f6fdff 0%,#b8dcea 100%); /* IE10+ */ background: -moz-linear-gradient(center top , #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#b8dcea'); outline: 0; border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #4990b4; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0px 1px 4px #eaeaea; -moz-box-shadow: 0px 1px 4px #eaeaea; box-shadow: 0px 1px 4px #eaeaea; vertical-align: center; text-decoration: none; } #verificationDialog { margin: 0; padding: 0; } #validate-header { width: 100%; height: 70px; border-bottom: 1px solid #E5E5E5; background-color: #F8F8F8; border-radius: 7px 7px 0 0; } #validate-header h1 { display: inline-block; line-height: 1em; font-family: Helvetica; margin: 0; padding: 26px 25px; color: #5EA1C3; font-size: 23px; font-weight: normal; text-shadow: 0px 2px 2px #DDD; } #validate-body { padding: 15px 25px; color: #333; } #validate-body span { display: block; font-family: Arial; font-size: 12px; color: #555; padding-bottom: 15px; } .resend { color: #777; font-family: Arial; font-size: 13px; } .resend:hover { color: #3E90B9; } #joinCommunityDialog { width: 650px; height: 445px; } #header { width: 100%; height: 75px; border-bottom: 1px solid #ccc; border-radius: 7px 7px 0 0; background: #ffffff; /* Old browsers */ background: -moz-linear-gradient(top, #ffffff 0%, #f9f9f9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f9f9f9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f9f9f9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f9f9f9',GradientType=0 ); /* IE6-9 */ } #header span { font-size: 23px; font-family: Helvetica; margin: 28px 29px; color: #5EA1C3; text-shadow: 0 2px 2px #DDD; display: inline-block; line-height: 1em; } #agreement ol li { font-size: 12px; display: inline-block; padding-right: 5px; color: #73bbdd; min-width: 125px; } .tou-tabs { display: flex; margin: 15px 0px 4px 30px; } .tou-tabs li { margin-right: 10px } ol li span { color: #7c7c7c; font-size: 13px; font-family: Arial; } label { color: #666666; } .tab-text { position: absolute; margin-top: 11px; } .tab-num-box { color: #7c7c7c; background-color: #e2e2e2; width: 41px; height: 36px; text-align: center; margin-right: 8px; display:block; float:left; } .tab-num-text { padding: 0px; margin-left: 15px; margin-top: 11px; font-family: 'Museo500'; font-size: 19px; display:block; float:left; } .finished { border: 1px solid #d7edf5; margin-bottom: -1px; background-color: #f8f8f8; } .finished .tab-num-box { color: white; font-family: 'Museo300'; background-color: #c5e3f2; } .finished .tab-num-text { color: #5A9ABA; } .finished .tab-text { font-family: 'Arial'; font-weight: bold; color: #c4e2f2; font-size: 13px; } .active .tab-num-box { background-color: #73bbdd; width: 41px; height: 41px; box-shadow: 0px 0px 5px (0, 0, 0 0.35); } .active .tab-num-text { color: white; margin-top: 13px; margin-left: 16px; } .active .tab-text { font-family: Arial; font-weight: bold; color: #5A9ABA; margin-top: 13px; } .wolframIdTab { width: 275px; } .wolframIdTab .tab-text { padding: 0px; } .acceptTouTab { border: 1px solid #b7dbed; border-bottom: none; opacity: 1; background-color: #f7fdff; width: 291px; height: 41px; margin-bottom: -5px; } .panel { background-color: #f7fdff; border: 1px solid #b7dbed; margin: 0px 30px; } .panel .label { display: block; font-family: Arial; font-size: 12px; color: #555; margin: 5px 15px; } .sub-panel { border-top: 1px solid #B7DBED; background: #fff; padding: 20px; padding-left: 25px; } .sub-panel a { padding: 0px 15px; text-decoration: none; font-size: 12px; color: #3187a7; } .sub-panel a:hover { color: #0a6089; } input[type="submit"] { background: -moz-linear-gradient(center top , #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#b8dcea'); outline: 0; border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #4990b4; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0px 1px 4px #eaeaea; -moz-box-shadow: 0px 1px 4px #eaeaea; box-shadow: 0px 1px 4px #eaeaea; vertical-align: center; text-decoration: none; } input[type="submit"]:hover { background: -moz-linear-gradient(center top , #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#90cae1'); border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #3e90b9; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); vertical-align: center; text-decoration: none; } .cancel-button { background: -moz-linear-gradient(center top , #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#b8dcea'); outline: 0; border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #4990b4; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0px 1px 4px #eaeaea; -moz-box-shadow: 0px 1px 4px #eaeaea; box-shadow: 0px 1px 4px #eaeaea; vertical-align: center; text-decoration: none; } .cancel-button:hover { background: -moz-linear-gradient(center top , #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#90cae1'); border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #3e90b9; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); vertical-align: center; text-decoration: none; } #join-text { padding: 25px; color: #555; font-size: 13px; font-family: 'Arial'; height: 160px; line-height: 18px; color: #777; } #join-text a { text-decoration: none; color: #3187a7; } #join-text a:hover { text-decoration: none; color: #0a6089; } #join-text span { display: block; padding-bottom: 15px; } #confirm-cancel-text { padding: 25px; color: #777; font-size: 13px; line-height: 18px; font-family: 'Arial'; height: 160px; } #confirm-cancel-text h1 { font-family: Museo500; font-size: 17px; color: #146F9D; margin: 0px; font-weight: normal; } #confirm-cancel-text span { display: block; padding-bottom: 5px; } #cancel-reg { cursor: pointer; }

Message Boards Message Boards

Answer (Unmark) Mark as an Answer
.root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 10px; } WOLFRAM COMMUNITY 0 | 299 Views | 2 Replies | 7 Total Likes View groups... Follow this post Share Share this post: GROUPS: Graphics and Visualization Wolfram Language Raspberry Pi

Why is this graph both continuous and discrete?

Viorel Negoita Viorel Negoita Viorel Negoita Posted 15 days ago .root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 0; }

I just installed Mathematica on a Raspberry Pi and I am playing around and I run into this. If I do the graph up to 34, I see discrete steps. Over 35, I start to see a mix of discrete steps and continuous line. This case below, with the graph going from 1 to 50 is a good example. Why is the line changing from steps to continuous, back to steps and back to continuous? changes the 50 to 34 and it looks only steps.

Graph

POSTED BY: Viorel Negoita 2 Replies Sort By: .root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 0; } 3 Gianluca Gorni Gianluca Gorni Gianluca Gorni, University of Udine Posted 15 days ago

Compare:

Plot[Sum[i, {i, 1, n}], {n, 1, 50}]
Plot[Sum[i, {i, 1, Floor[n]}], {n, 1, 50}]
Plot[Evaluate@Sum[i, {i, 1, n}], {n, 1, 50}]

When you evaluate Plot[Sum[i, {i, 1, n}], {n, 1, 50}], floating points values of n are replaced into Sum[i, {i, 1, n}], giving something like, for example,

Sum[i, {i, 1, 20.4}]

The variable i then takes the values 1,2,3,... until 20 and then stops. This accounts for the steps in the plot. The parts in the plot without steps are probably where the refining algorithm does not feel the need to insert further points, because it did not detect a sharp curvature at its first attempt.

With Evaluate@Sum[i, {i, 1, n}] the sum is replaced by 1/2 n (1 + n), which gives a smooth curve.

POSTED BY: Gianluca Gorni .root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 0; } 4 Jim Baldwin Jim Baldwin Jim Baldwin Posted 15 days ago

There are not enough PlotPoints. Try

Plot[Sum[i, {i, 1, n}], {n, 1, 50}, PlotPoints -> 100]

or

ListStepPlot[Table[Sum[i, {i, 1, n}], {n, 1, 50}]]
POSTED BY: Jim Baldwin
Reply to this discussion in reply to Community posts can be styled and formatted using the Markdown syntax. Tag limit exceeded Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles. Reply Preview Attachments Remove or Discard

Group Abstract Group Abstract

Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use Feedback © 2024 Wolfram. All rights reserved.